org.openoffice.ide.eclipse.core.builders
Class TypesBuilder

java.lang.Object
  extended by org.eclipse.core.internal.events.InternalBuilder
      extended by org.eclipse.core.resources.IncrementalProjectBuilder
          extended by org.openoffice.ide.eclipse.core.builders.TypesBuilder
All Implemented Interfaces:
org.eclipse.core.runtime.IExecutableExtension

public class TypesBuilder
extends org.eclipse.core.resources.IncrementalProjectBuilder

Main builder of the UNO-IDL projects, it computes the language specific type files and types registry from the idl files. In order to split the work, the different tasks have been split into several builders:

Author:
Cedric Bosdonnat

Field Summary
static java.lang.String BUILDER_ID
          The builder ID as set in the plugin.xml file.
static int COMPLETED_STATE
           
static int GENERATE_TYPES_STATE
           
static int IDLC_STATE
           
static int NOT_STARTED_STATE
           
static int REGMERGE_STATE
           
 
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD
 
Constructor Summary
TypesBuilder()
           
 
Method Summary
protected  org.eclipse.core.resources.IProject[] build(int pKind, java.util.Map pArgs, org.eclipse.core.runtime.IProgressMonitor pMonitor)
          
static void build(org.eclipse.core.resources.IProject pPrj, org.eclipse.core.runtime.IProgressMonitor pMonitor)
          Build the types of a project.
static void buildIdl(IUnoidlProject pProject, org.eclipse.core.runtime.IProgressMonitor pMonitor)
          Runs the idl files compilation.
 
Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
clean, forgetLastBuiltState, getCommand, getDelta, getProject, getRule, hasBeenBuilt, isInterrupted, needRebuild, setInitializationData, startupOnInitialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILDER_ID

public static final java.lang.String BUILDER_ID
The builder ID as set in the plugin.xml file.

See Also:
Constant Field Values

IDLC_STATE

public static final int IDLC_STATE
See Also:
Constant Field Values

REGMERGE_STATE

public static final int REGMERGE_STATE
See Also:
Constant Field Values

GENERATE_TYPES_STATE

public static final int GENERATE_TYPES_STATE
See Also:
Constant Field Values

COMPLETED_STATE

public static final int COMPLETED_STATE
See Also:
Constant Field Values

NOT_STARTED_STATE

public static final int NOT_STARTED_STATE
See Also:
Constant Field Values
Constructor Detail

TypesBuilder

public TypesBuilder()
Method Detail

build

protected org.eclipse.core.resources.IProject[] build(int pKind,
                                                      java.util.Map pArgs,
                                                      org.eclipse.core.runtime.IProgressMonitor pMonitor)
                                               throws org.eclipse.core.runtime.CoreException

Specified by:
build in class org.eclipse.core.resources.IncrementalProjectBuilder
Throws:
org.eclipse.core.runtime.CoreException

build

public static void build(org.eclipse.core.resources.IProject pPrj,
                         org.eclipse.core.runtime.IProgressMonitor pMonitor)
                  throws java.lang.Exception
Build the types of a project.

Parameters:
pPrj - the project to build
pMonitor - a monitor to report the build progress
Throws:
java.lang.Exception - if anything wrong happens during the build

buildIdl

public static void buildIdl(IUnoidlProject pProject,
                            org.eclipse.core.runtime.IProgressMonitor pMonitor)
                     throws java.lang.Exception
Runs the idl files compilation.

Parameters:
pProject - the uno project to build
pMonitor - a monitor to watch the progress
Throws:
java.lang.Exception - if anything wrong happened