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 Type
    Method
    Description
    org.eclipse.core.resources.IFile
    Creates the library containing the component.
    void
    fillUnoPackage(org.libreoffice.plugin.core.model.UnoPackage pUnoPackage, IUnoidlProject pPrj)
    Adds all the language specific libraries to the UNO package.
    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.
    Computes the environment variables needed to build the library.
  • Method Details

    • getBuildEnv

      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 Exception
      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.rdb path, 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 generation
      ooo - the working OpenOffice.org instance
      prj - the project for which to generate the interfaces
      typesFile - the project types.rdb path
      buildFolder - the path to the folder where to the files will be generated
      rootModule - the project root module (eg: foo::bar)
      monitor - 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 complete
      pPrj - the project to package