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.IncrementalProjectBuilderMain builder of the UNO-IDL projects, it computes the language specific type files and types registry from the
idlfiles. 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
Fields Modifier and Type Field Description static java.lang.StringBUILDER_IDThe builder ID as set in theplugin.xmlfile.static intCOMPLETED_STATEstatic intGENERATE_TYPES_STATEstatic intIDLC_STATEstatic intNOT_STARTED_STATEstatic intREGMERGE_STATE
-
Constructor Summary
Constructors Constructor Description TypesBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.core.resources.IProject[]build(int pKind, java.util.Map<java.lang.String,java.lang.String> pArgs, org.eclipse.core.runtime.IProgressMonitor pMonitor)static voidbuild(org.eclipse.core.resources.IProject pPrj, org.eclipse.core.runtime.IProgressMonitor pMonitor)Build the types of a project.static voidbuildIdl(IUnoidlProject pProject, org.eclipse.core.runtime.IProgressMonitor pMonitor)Runs the idl files compilation.
-
-
-
Field Detail
-
BUILDER_ID
public static final java.lang.String BUILDER_ID
The builder ID as set in theplugin.xmlfile.- 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
-
-
Method Detail
-
build
protected org.eclipse.core.resources.IProject[] build(int pKind, java.util.Map<java.lang.String,java.lang.String> pArgs, org.eclipse.core.runtime.IProgressMonitor pMonitor) 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 pPrj, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.lang.ExceptionBuild 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
-
-