Class UnoTypeProvider
java.lang.Object
org.libreoffice.ide.eclipse.core.unotypebrowser.UnoTypeProvider
Class providing UNO types from a LibreOffice instance and optionally from a UNO project.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInitListener(IInitListener listener) Register the given listener.booleanChecks whether the list contains the given type name.static UnoTypeProvidergetState()voidRefresh the cache of Uno types.protected voidPurge the types list.voidremoveInitListener(IInitListener listener) Makes the given initialization listener stop listening.voidsetOOoInstance(IOOo instance) Sets the OOo if the new one is different from the old one.voidsetProject(IUnoidlProject pProject) Set the UNO project for which to get the UNO types.protected Object[]Initializes the cache if needed and get the cached data.
-
Field Details
-
ALL_TYPES
public static final int ALL_TYPES- See Also:
-
BASIC_TYPES_KEY
- See Also:
-
-
Method Details
-
getInstance
- Returns:
- the
UnoTypeProvidersingleton instance.
-
refreshCache
public void refreshCache()Refresh the cache of Uno types. -
contains
Checks whether the list contains the given type name.- Parameters:
pScopedName- the type name to matchcontainers- the UNO types containers to look in. These have to be either the path to a project RDB file or a LibreOffice name- Returns:
trueif the list contains a type with this name
-
setProject
Set the UNO project for which to get the UNO types. This project'stypes.rdbregistry will be used as external registry for the types query.- Parameters:
pProject- the project for which to launch the type query
-
setOOoInstance
Sets the OOo if the new one is different from the old one.- Parameters:
instance- LibreOffice instance to bootstrap
-
getState
- Returns:
- the status of the UNO type provider.
-
addInitListener
Register the given listener.- Parameters:
listener- the listener to add
-
removeInitListener
Makes the given initialization listener stop listening.- Parameters:
listener- the listener to remove
-
toArray
Initializes the cache if needed and get the cached data.- Parameters:
containers- the container from which to get the types.- Returns:
- the types list as an array.
- See Also:
-
TypesGetter
-
removeAllTypes
protected void removeAllTypes()Purge the types list.
-