Interface IProjectHandler
public interface IProjectHandler
This interface provides a set of methods to perform language specific tasks on uno-idl projects.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddOOoDependencies(IOOo ooo, org.eclipse.core.resources.IProject pProject) Adds the language specific OpenOffice.org dependencies to the project.voidaddProjectNature(org.eclipse.core.resources.IProject pProject) Add a language specific language nature.voidconfigureProject(UnoFactoryData data, org.eclipse.core.runtime.IProgressMonitor monitor) Adds the language specific things of the UNO project.org.eclipse.core.resources.IFolder[]getBinFolders(IUnoidlProject pUnoidlProject) org.eclipse.core.runtime.IPathgetImplementationFile(String implementationName) Computes the implementation file path from the implementation name.getImplementationName(IUnoidlProject pPrj, String pService) Extracts the Implementation name of the class that will be generated by theuno-skeletonmaker.getLibraryPath(IUnoidlProject pPrj) Extracts the language option name to give to theuno-skeletonmaker:--java5for Java 1.5 for example.voidremoveOOoDependencies(IOOo ooo, org.eclipse.core.resources.IProject pProject) Removes the language specific OpenOffice.org dependencies from the project.
-
Method Details
-
configureProject
void configureProject(UnoFactoryData data, org.eclipse.core.runtime.IProgressMonitor monitor) throws Exception Adds the language specific things of the UNO project. The project handle has to be contained in the provided data.- Parameters:
data- the data describing the project to configuremonitor- the monitor reporting the progress- Throws:
Exception- if anything wrong happens.
-
addProjectNature
void addProjectNature(org.eclipse.core.resources.IProject pProject) Add a language specific language nature. This one has to configure the language-specific properties of the project and set the builders.- Parameters:
pProject- the project on which to add the nature. Must not be null, otherwise the nature won't be added
-
addOOoDependencies
Adds the language specific OpenOffice.org dependencies to the project.- Parameters:
ooo- the OpenOffice.org instancepProject- the project on which to add the dependencies
-
removeOOoDependencies
Removes the language specific OpenOffice.org dependencies from the project.- Parameters:
ooo- the OpenOffice.org instancepProject- the project from which to remove the dependencies
-
getSkeletonMakerLanguage
Extracts the language option name to give to theuno-skeletonmaker:--java5for Java 1.5 for example. To know the correct language name, please refer to theuno-skeletonmakerhelp.- Parameters:
data- the UNO factory data from where to extract the value- Returns:
- the option or
nullif theuno-skeletonmakerutility doesn't support the language. - Throws:
Exception- is thrown if anything wrong happens
-
getImplementationName
Extracts the Implementation name of the class that will be generated by theuno-skeletonmaker. It should never return anullvalue.- Parameters:
pPrj- the project to work onpService- the service for which to get the implementation- Returns:
- the implementation name
- Throws:
Exception- if anything wrong happens.
-
getImplementationFile
Computes the implementation file path from the implementation name.- Parameters:
implementationName- the implementation name returned by the project handler.- Returns:
- a source directory relative path pointing to the file that will be generated by
uno-skeletonmaker.
-
getLibraryPath
- Parameters:
pPrj- the UNO project from which to get the library path- Returns:
- the library path, ready to be provided to the
Fileclass constructor.
-
getBinFolders
- Parameters:
pUnoidlProject- the UNO project from which to get the binary folders- Returns:
- the binary folders
-