|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openoffice.ide.eclipse.core.unotypebrowser.UnoTypeProvider
public class UnoTypeProvider
Class providing UNO types from an OpenOffice.org instance and optionally from a UNO project.
Field Summary | |
---|---|
static int |
ALL_TYPES
|
static java.lang.String |
BASIC_TYPES_KEY
|
Method Summary | |
---|---|
void |
addInitListener(IInitListener pListener)
Register the given listener. |
boolean |
contains(java.lang.String pScopedName,
java.lang.String[] pContainers)
Checks whether the list contains the given type name. |
static UnoTypeProvider |
getInstance()
|
TypeProviderState |
getState()
|
void |
refreshCache()
Refresh the cache of Uno types. |
protected void |
removeAllTypes()
Purge the types list. |
void |
removeInitListener(IInitListener pListener)
Makes the given initialization listener stop listening. |
void |
setOOoInstance(IOOo pOOoInstance)
Sets the OOo if the new one is different from the old one. |
void |
setProject(IUnoidlProject pProject)
Set the UNO project for which to get the UNO types. |
protected java.lang.Object[] |
toArray(java.lang.String[] pContainers)
Initializes the cache if needed and get the cached data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALL_TYPES
public static final java.lang.String BASIC_TYPES_KEY
Method Detail |
---|
public static UnoTypeProvider getInstance()
UnoTypeProvider
singleton instance.public void refreshCache()
public boolean contains(java.lang.String pScopedName, java.lang.String[] pContainers)
pScopedName
- the type name to matchpContainers
- the UNO types containers to look in. These have to be either
the path to a project RDB file or an OpenOffice.org name
true
if the list contains a type with this namepublic void setProject(IUnoidlProject pProject)
types.rdb
registry will be used as external registry
for the types query.
pProject
- the project for which to launch the type querypublic void setOOoInstance(IOOo pOOoInstance)
pOOoInstance
- OpenOffice.org instance to bootstrappublic TypeProviderState getState()
public void addInitListener(IInitListener pListener)
pListener
- the listener to addpublic void removeInitListener(IInitListener pListener)
pListener
- the listener to removeprotected java.lang.Object[] toArray(java.lang.String[] pContainers)
pContainers
- the container from which to get the types.
org.openoffice.ide.eclipse.core.internal.office.TypesGetter
protected void removeAllTypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |