|
|||||||||
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 |
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,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Adds the language specific things of the UNO project. |
org.eclipse.core.resources.IFolder[] |
getBinFolders(IUnoidlProject pUnoidlProject)
|
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, org.eclipse.core.runtime.IProgressMonitor pMonitor) throws java.lang.Exception
pData
- the data describing the project to configurepMonitor
- the monitor reporting the progress
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 dependenciesjava.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.org.eclipse.core.resources.IFolder[] getBinFolders(IUnoidlProject pUnoidlProject)
pUnoidlProject
- the UNO project from which to get the binary folders
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |