|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.runtime.RegistryUtils
Collection of utility methods related to the extension registry functionality. This class is not intended to be subclassed or instantiated.
| Constructor Summary | |
|---|---|
RegistryUtils()
|
|
| Method Summary | |
|---|---|
static org.eclipse.core.runtime.spi.RegistryStrategy |
createOSGiStrategy(File storageDir,
boolean cacheReadOnly,
Object token)
Creates registry strategy that can be used in OSGi world. |
static String |
getContributorId(Bundle bundle)
Returns Id corresponding to the OSGi bundle. |
static IExtensionRegistry |
getRegistryFromProvider()
Returns the existing extension registry specified by the registry provider. |
static void |
setRegistryProvider(IRegistryProvider provider)
Use this method to specify the default registry provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RegistryUtils()
| Method Detail |
public static org.eclipse.core.runtime.spi.RegistryStrategy createOSGiStrategy(File storageDir,
boolean cacheReadOnly,
Object token)
storageDir - - file system directory to store cache files; might be nullcacheReadOnly - - true: cache is read only; false: cache is read/writetoken - - control token for the registrypublic static String getContributorId(Bundle bundle)
bundle - - OSGi bundle
IExtensionRegistry.addContribution(java.io.InputStream, java.lang.String, boolean, java.lang.String, java.util.ResourceBundle, java.lang.Object)public static IExtensionRegistry getRegistryFromProvider()
public static void setRegistryProvider(IRegistryProvider provider)
throws CoreException
provider - - extension registry provider
CoreException - - default registry provider was already set for this applicationThis is an experimental API. It might change in future.
|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.