Interface ILanguageBuilder
public interface ILanguageBuilder
Interface defining a set of methods for to do the language specific tasks to build UNO projects.
-
Method Summary
Modifier and TypeMethodDescriptionorg.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 sdk, IOOo ooo, org.eclipse.core.resources.IProject prj, File typesFile, File buildFolder, String rootModule, org.eclipse.core.runtime.IProgressMonitor monitor) Generates the language specific interfaces corresponding to the project unoidl specifications.String[]getBuildEnv(IUnoidlProject pUnoProject) Computes the environment variables needed to build the library.
-
Method Details
-
getBuildEnv
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
Creates the library containing the component.- Parameters:
pUnoProject- the project to build into a library- Returns:
- the created library path
- Throws:
Exception- if anything wrong happened
-
generateFromTypes
void generateFromTypes(ISdk sdk, IOOo ooo, org.eclipse.core.resources.IProject prj, File typesFile, File buildFolder, String rootModule, org.eclipse.core.runtime.IProgressMonitor monitor) 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:
sdk- the SDK containing the tools for generationooo- the working OpenOffice.org instanceprj- the project for which to generate the interfacestypesFile- the project types.rdb pathbuildFolder- the path to the folder where to the files will be generatedrootModule- the project root module (eg:foo::bar)monitor- the progress monitor
-
fillUnoPackage
Adds all the language specific libraries to the UNO package.- Parameters:
pUnoPackage- the UNO package to completepPrj- the project to package
-