org.openoffice.ide.eclipse.core.builders
Class TypesBuilder
java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
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:
RegmergeBuilder
merging the urd files into the types
registry
ILanguageBuilder#generateFromTypes(
ISdk, org.openoffice.ide.eclipse.core.preferences.IOOo, IProject, File, File, String, IProgressMonitor)
generating the language specific type files
- Author:
- Cedric Bosdonnat
Fields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder |
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD |
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 |
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
TypesBuilder
public TypesBuilder()
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 buildpMonitor
- 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 buildpMonitor
- a monitor to watch the progress
- Throws:
java.lang.Exception
- if anything wrong happened