Interface ILanguageBuilder
-
public interface ILanguageBuilderInterface defining a set of methods for to do the language specific tasks to build UNO projects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.core.resources.IFilecreateLibrary(IUnoidlProject pUnoProject)Creates the library containing the component.voidfillUnoPackage(org.libreoffice.plugin.core.model.UnoPackage pUnoPackage, IUnoidlProject pPrj)Adds all the language specific libraries to the UNO package.voidgenerateFromTypes(ISdk pSdk, IOOo pOoo, org.eclipse.core.resources.IProject pPrj, java.io.File pTypesFile, java.io.File pBuildFolder, java.lang.String pRootModule, org.eclipse.core.runtime.IProgressMonitor pMonitor)Generates the language specific interfaces corresponding to the project unoidl specifications.java.lang.String[]getBuildEnv(IUnoidlProject pUnoProject)Computes the environment variables needed to build the library.
-
-
-
Method Detail
-
getBuildEnv
java.lang.String[] getBuildEnv(IUnoidlProject pUnoProject)
Computes the environment variables needed to build the library.- Parameters:
pUnoProject- the UNO project of the library- Returns:
- an array containing all the environment variables under the form
NAME=VALUE
-
createLibrary
org.eclipse.core.resources.IFile createLibrary(IUnoidlProject pUnoProject) throws java.lang.Exception
Creates the library containing the component.- Parameters:
pUnoProject- the project to build into a library- Returns:
- the created library path
- Throws:
java.lang.Exception- if anything wrong happened
-
generateFromTypes
void generateFromTypes(ISdk pSdk, IOOo pOoo, org.eclipse.core.resources.IProject pPrj, java.io.File pTypesFile, java.io.File pBuildFolder, java.lang.String pRootModule, org.eclipse.core.runtime.IProgressMonitor pMonitor)
Generates the language specific interfaces corresponding to the project unoidl specifications. This method needs an OpenOffice.org instance, the project
types.rdbpath, the build path where to put the generated files and the root module to avoid massive idl types creation- Parameters:
pSdk- the SDK containing the tools for generationpOoo- the working OpenOffice.org instancepPrj- the project for which to generate the interfacespTypesFile- the project types.rdb pathpBuildFolder- the path to the folder where to the files will be generatedpRootModule- the project root module (eg:foo::bar)pMonitor- the progress monitor
-
fillUnoPackage
void fillUnoPackage(org.libreoffice.plugin.core.model.UnoPackage pUnoPackage, IUnoidlProject pPrj)Adds all the language specific libraries to the UNO package.- Parameters:
pUnoPackage- the UNO package to completepPrj- the project to package
-
-