|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOOo
Interface for an OpenOffice.org configuration instance. This can even be implemented as an URE instance.
Method Summary | |
---|---|
boolean |
canManagePackages()
|
java.lang.String |
createUnoCommand(java.lang.String pImplementationName,
java.lang.String pLibLocation,
java.lang.String[] pRegistriesPaths,
java.lang.String[] pArgs)
Returns a command to execute a uno component. |
java.lang.String[] |
getBinPath()
Returns the path to any folder containing binaries in the OOo installation. |
java.lang.String[] |
getClassesPath()
Returns the path to the OpenOffice.org classes directory. |
java.lang.String |
getHome()
Returns the path to the OpenOffice.org home directory. |
java.lang.String |
getJavaldxPath()
|
java.lang.String[] |
getLibsPath()
Returns the path to the OpenOffice.org shared libraries. |
java.lang.String |
getName()
Returns the OOo name. |
java.lang.String[] |
getServicesPath()
|
java.lang.String[] |
getTypesPath()
|
java.lang.String |
getUnoPath()
|
java.lang.String |
getUnorcPath()
|
void |
runUno(IUnoidlProject pPrj,
java.lang.String pMain,
java.lang.String pArgs,
org.eclipse.debug.core.ILaunch pLaunch,
org.eclipse.core.runtime.IProgressMonitor pMonitor)
Run the uno executable with the given Main implementation,
the arguments and the launcher. |
void |
setHome(java.lang.String pHome)
Set the home directory. |
void |
updatePackage(java.io.File pPackageFile)
Update a package in the OOo instance if it can manages packages. |
Method Detail |
---|
void setHome(java.lang.String pHome) throws InvalidConfigException
pHome
- the absolute path to the home directory
InvalidConfigException
- is thrown if the path doesn't match the
implementation requirement for an OOo instance. The error code will
be InvalidConfigException.INVALID_OOO_HOME
java.lang.String getHome()
java.lang.String getName()
java.lang.String[] getClassesPath()
Returns the path to the OpenOffice.org classes directory. These strings could be passed to the Path constructor to get the folder object.
This method should be used for future compatibility with URE applications
java.lang.String[] getLibsPath()
Returns the path to the OpenOffice.org shared libraries. This string could be passed to the Path constructor to get the folder object.
java.lang.String[] getBinPath()
Returns the path to any folder containing binaries in the OOo installation. This string could be passed to the Path constructor to get the folder object.
java.lang.String[] getTypesPath()
types.rdb
file of the OOo or URE
instance.java.lang.String[] getServicesPath()
services.rdb
file of the OOo or URE
instance.java.lang.String getUnorcPath()
java.lang.String getUnoPath()
java.lang.String getJavaldxPath()
javaldx
executablejava.lang.String createUnoCommand(java.lang.String pImplementationName, java.lang.String pLibLocation, java.lang.String[] pRegistriesPaths, java.lang.String[] pArgs)
uno
component.
pImplementationName
- the name of the component implementation to runpLibLocation
- the name of the library containing the implementationpRegistriesPaths
- the path to the additional registriespArgs
- the argument for the component launch
uno
binaryvoid runUno(IUnoidlProject pPrj, java.lang.String pMain, java.lang.String pArgs, org.eclipse.debug.core.ILaunch pLaunch, org.eclipse.core.runtime.IProgressMonitor pMonitor)
uno
executable with the given Main implementation,
the arguments and the launcher.
pPrj
- the project to runpMain
- the main implementationpArgs
- the argument to pass to the main implementationpLaunch
- the launcherpMonitor
- a monitor to follow the progressboolean canManagePackages()
true
if the OOo instance has a package manager.void updatePackage(java.io.File pPackageFile)
pPackageFile
- the package to add or update
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |