Class TypesBuilder
java.lang.Object
org.eclipse.core.internal.events.InternalBuilder
org.eclipse.core.resources.IncrementalProjectBuilder
org.libreoffice.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:
RegmergeBuildermerging the urd files into the types registry-
ILanguageBuilder.generateFromTypes(ISdk, org.libreoffice.ide.eclipse.core.preferences.IOOo, IProject, File, File, String, IProgressMonitor)generating the language specific type files
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe builder ID as set in theplugin.xmlfile.static final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
AUTO_BUILD, CLEAN_BUILD, FULL_BUILD, INCREMENTAL_BUILD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.core.resources.IProject[]static voidbuild(org.eclipse.core.resources.IProject prj, org.eclipse.core.runtime.IProgressMonitor monitor) Build the types of a project.static voidbuildIdl(IUnoidlProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Runs the idl files compilation.Methods inherited from class org.eclipse.core.resources.IncrementalProjectBuilder
clean, forgetLastBuiltState, getBuildConfig, getCommand, getContext, getDelta, getProject, getRule, hasBeenBuilt, isInterrupted, needRebuild, rememberLastBuiltState, requestProjectRebuild, requestProjectsRebuild, setInitializationData, startupOnInitialize
-
Field Details
-
BUILDER_ID
The builder ID as set in theplugin.xmlfile.- See Also:
-
IDLW_STATE
public static final int IDLW_STATE- See Also:
-
IDLC_STATE
public static final int IDLC_STATE- See Also:
-
REGMERGE_STATE
public static final int REGMERGE_STATE- See Also:
-
GENERATE_TYPES_STATE
public static final int GENERATE_TYPES_STATE- See Also:
-
COMPLETED_STATE
public static final int COMPLETED_STATE- See Also:
-
NOT_STARTED_STATE
public static final int NOT_STARTED_STATE- See Also:
-
-
Constructor Details
-
TypesBuilder
public TypesBuilder()
-
-
Method Details
-
build
protected org.eclipse.core.resources.IProject[] build(int kind, Map<String, String> args, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException- Specified by:
buildin classorg.eclipse.core.resources.IncrementalProjectBuilder- Throws:
org.eclipse.core.runtime.CoreException
-
build
public static void build(org.eclipse.core.resources.IProject prj, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception Build the types of a project.- Parameters:
prj- the project to buildmonitor- a monitor to report the build progress- Throws:
Exception- if anything wrong happens during the build
-
buildIdl
public static void buildIdl(IUnoidlProject project, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception Runs the idl files compilation.- Parameters:
project- the uno project to buildmonitor- a monitor to watch the progress- Throws:
Exception- if anything wrong happened
-