|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.model.PluginRegistryModel
A container for a collection of plug-in descriptors.
This class may be instantiated, or further subclassed.
Constructor Summary | |
PluginRegistryModel()
Creates a new plug-in registry model which contains no plug-ins. |
Method Summary | |
void |
addFragment(PluginFragmentModel fragment)
Adds the specified plug-in fragment to this registry. |
void |
addPlugin(PluginDescriptorModel plugin)
Adds the specified plug-in to this registry. |
protected void |
assertIsWriteable()
Checks that this model object is writeable. |
PluginFragmentModel |
getFragment(String id)
Returns the plug-in fragment with the given identifier in this plug-in registry, or null if there is no such
fragment. |
PluginFragmentModel |
getFragment(String id,
String version)
Returns the identified plug-in fragment or null if
the fragment does not exist. |
PluginFragmentModel[] |
getFragments()
Returns the list of plug-in fragments managed by this registry. |
PluginFragmentModel[] |
getFragments(String id)
Returns all versions of the identified plug-in fragment known to this plug-in registry. |
PluginDescriptorModel |
getPlugin(String pluginId)
Returns the plug-in descriptor with the given plug-in identifier in this plug-in registry, or null if there is no such
plug-in. |
PluginDescriptorModel |
getPlugin(String pluginId,
String version)
Returns the identified plug-in or null if
the plug-in does not exist. |
PluginDescriptorModel[] |
getPlugins()
Returns the list of plug-ins managed by this registry. |
PluginDescriptorModel[] |
getPlugins(String pluginId)
Returns all versions of the identified plug-in descriptor known to this plug-in registry. |
boolean |
isReadOnly()
Returns whether or not this model object is read-only. |
boolean |
isResolved()
Returns whether or not this model object has been resolved. |
void |
markReadOnly()
Sets this model object and all of its descendents to be read-only. |
void |
markResolved()
Sets this model object to be resolved. |
void |
removeFragment(String id,
String version)
Removes the fragment with id and version if it exists in this registry. |
void |
removeFragments(String id)
Removes all versions of the identified plug-in fragment from this registry. |
void |
removePlugin(String pluginId,
String version)
Removes the plug-in with id and version if it exists in this registry. |
void |
removePlugins(String pluginId)
Removes all versions of the given plug-in from this registry. |
IStatus |
resolve(boolean trimDisabledPlugins,
boolean doCrossLinking)
Runs a resolve through the entire registry. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PluginRegistryModel()
Method Detail |
public void addFragment(PluginFragmentModel fragment)
fragment
- the plug-in fragment to addpublic void addPlugin(PluginDescriptorModel plugin)
plugin
- the plug-in descriptor to addprotected void assertIsWriteable()
public PluginFragmentModel getFragment(String id)
null
if there is no such
fragment. If there are multiple versions of the identified fragment,
one will be non-deterministically choosen and returned.
id
- the unique identifier of the plug-in fragment
(e.g. "com.example.acme"
).
null
public PluginFragmentModel getFragment(String id, String version)
null
if
the fragment does not exist.
public PluginFragmentModel[] getFragments()
public PluginFragmentModel[] getFragments(String id)
id
- the unique identifier of the plug-in fragment
(e.g. "org.eclipse.core.resources"
).
public PluginDescriptorModel getPlugin(String pluginId)
null
if there is no such
plug-in. If there are multiple versions of the identified plug-in,
one will be non-deterministically choosen and returned.
pluginId
- the unique identifier of the plug-in
(e.g. "com.example.acme"
).
null
public PluginDescriptorModel getPlugin(String pluginId, String version)
null
if
the plug-in does not exist.
public PluginDescriptorModel[] getPlugins()
public PluginDescriptorModel[] getPlugins(String pluginId)
pluginId
- the unique identifier of the plug-in
(e.g. "org.eclipse.core.resources"
).
public boolean isReadOnly()
true
if this model object is read-only,
false
otherwisemarkReadOnly()
public boolean isResolved()
true
if this model object has been resolved,
false
otherwiseresolve(boolean, boolean)
public void markReadOnly()
isReadOnly()
public void markResolved()
public void removeFragment(String id, String version)
id
- the unique identifier of the fragment to removeversion
- the version of the fragment to removepublic void removeFragments(String id)
id
- the unique identifier of the fragments to removepublic void removePlugin(String pluginId, String version)
pluginId
- the unique identifier of the plug-in to removeversion
- the version of the plug-in to removepublic void removePlugins(String pluginId)
pluginId
- the unique identifier of the plug-ins to removepublic IStatus resolve(boolean trimDisabledPlugins, boolean doCrossLinking)
trimDisabledPlugins
- if true, remove all disabled plugins
from the registry (recommended value = true)doCrossLinking
- if true, link all ExtensionModels in the registry
to their corresponding ExtensionPointModel (recommended value = true).
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |