|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IProjectHandler
This interface provides a set of methods to perform language specific tasks on uno-idl projects.
Method Summary | |
---|---|
void |
addLanguageDependencies(IUnoidlProject pUnoproject,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Adds the language specific dependencies for the project. |
void |
addOOoDependencies(IOOo pOoo,
org.eclipse.core.resources.IProject pProject)
Adds the language specific OpenOffice.org dependencies to the project. |
void |
addProjectNature(org.eclipse.core.resources.IProject pProject)
Add a language specific language nature. |
void |
configureProject(UnoFactoryData pData)
Adds the language specific things of the UNO project. |
void |
createRegistrationSystem(IUnoidlProject pPrj)
Adds the necessary code for the registration of several services implementation. |
org.eclipse.core.runtime.IPath |
getImplementationFile(java.lang.String pImplementationName)
Computes the implementation file path from the implementation name. |
java.lang.String |
getImplementationName(IUnoidlProject pPrj,
java.lang.String pService)
Extracts the Implementation name of the class that will be generated by the uno-skeletonmaker . |
java.lang.String |
getLibraryPath(IUnoidlProject pPrj)
|
java.lang.String |
getSkeletonMakerLanguage(UnoFactoryData pData)
Extracts the language option name to give to the uno-skeletonmaker : --java5 for Java 1.5
for example. |
void |
removeOOoDependencies(IOOo pOoo,
org.eclipse.core.resources.IProject pProject)
Removes the language specific OpenOffice.org dependencies from the project. |
Method Detail |
---|
void configureProject(UnoFactoryData pData) throws java.lang.Exception
pData
- the data describing the project to configure
java.lang.Exception
- if anything wrong happens.void addProjectNature(org.eclipse.core.resources.IProject pProject)
pProject
- the project on which to add the nature.
Must not be null, otherwise the nature won't be addedvoid addOOoDependencies(IOOo pOoo, org.eclipse.core.resources.IProject pProject)
pOoo
- the OpenOffice.org instancepProject
- the project on which to add the dependenciesvoid removeOOoDependencies(IOOo pOoo, org.eclipse.core.resources.IProject pProject)
pOoo
- the OpenOffice.org instancepProject
- the project from which to remove the dependenciesvoid addLanguageDependencies(IUnoidlProject pUnoproject, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws org.eclipse.core.runtime.CoreException
pUnoproject
- the UNO project on which to add the dependenciespMonitor
- a progress monitor
org.eclipse.core.runtime.CoreException
- if there is any problem during the operationjava.lang.String getSkeletonMakerLanguage(UnoFactoryData pData) throws java.lang.Exception
uno-skeletonmaker
: --java5
for Java 1.5
for example. To know the correct language name, please refer to
the uno-skeletonmaker
help.
pData
- the UNO factory data from where to extract the value
null
if the
uno-skeletonmaker
utility doesn't support
the language.
java.lang.Exception
- is thrown if anything wrong happensjava.lang.String getImplementationName(IUnoidlProject pPrj, java.lang.String pService) throws java.lang.Exception
uno-skeletonmaker
. It should never return a
null
value.
pPrj
- the project to work onpService
- the service for which to get the implementation
java.lang.Exception
- if anything wrong happens.org.eclipse.core.runtime.IPath getImplementationFile(java.lang.String pImplementationName)
pImplementationName
- the implementation name returned by the
project handler.
uno-skeletonmaker
.java.lang.String getLibraryPath(IUnoidlProject pPrj)
pPrj
- the UNO project from which to get the library path
File
class constructor.void createRegistrationSystem(IUnoidlProject pPrj)
pPrj
- the project where to add the registration system
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |