Class orion.pluginregistry.Plugin
Represents a single plugin in the plugin registry.
Defined in: </shared/eclipse/e4/orion/I201302221257/plugins/org.eclipse.orion.client.core/web/orion/pluginregistry.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new plugin.
|
Method Attributes | Method Name and Description |
---|---|
Returns the headers of this plugin
|
|
Returns the URL location of this plugin
|
|
Returns the service references provided by this plugin
|
|
getState()
Returns this plugin's current state.
|
|
Uninstalls this plugin
|
A plugin can be in one of three states:
- orion.pluginregistry.Plugin.INSTALLED
- The plugin is not running, and is present in the plugin registry.
From the
INSTALLED
state, the plugin will becomeLOADED
if a service method provided by one of the plugin's service references is called through the service registry. - orion.pluginregistry.Plugin.LOADED
- The plugin is running, and is present in the plugin registry.
From the
LOADED
state, the plugin will becomeUNINSTALLED
if its #uninstall method is called. - orion.pluginregistry.Plugin.UNINSTALLED
- The plugin is not running, and has been removed from the plugin registry.
Any services formerly provided by the plugin have been unregistered and cannot be called. Although uninstalled plugins do not appear in the plugin registry, they can be observed if references to a Plugin instance are kept after its #uninstall method has been called.
From the
UNINSTALLED
state, the plugin cannot change to any other state.
- Returns:
- {Object} The plugin headers
- Returns:
- {String} The URL of this plugin
- Returns:
- {orion.serviceregistry.ServiceReference} The service references provided by this plugin.
- Returns:
- {Number} This plugin's state. The value is one of:
- orion.pluginregistry.Plugin.INSTALLED
- orion.pluginregistry.Plugin.LOADED
- orion.pluginregistry.Plugin.UNINSTALLED