Interface ILanguageBuilder


  • public interface ILanguageBuilder
    Interface 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.IFile createLibrary​(IUnoidlProject pUnoProject)
      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 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.rdb path, 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 generation
        pOoo - the working OpenOffice.org instance
        pPrj - the project for which to generate the interfaces
        pTypesFile - the project types.rdb path
        pBuildFolder - the path to the folder where to the files will be generated
        pRootModule - 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 complete
        pPrj - the project to package