Class orion.pluginregistry.PluginRegistry
The Orion plugin registry
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.core/web/orion/pluginregistry.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.pluginregistry.PluginRegistry(serviceRegistry, opt_storage, opt_visible)
Creates a new plugin registry.
|
Method Attributes | Method Name and Description |
---|---|
Returns the installed plugin with the given URL.
|
|
Returns all installed plugins.
|
|
installPlugin(url, optManifest)
Installs the plugin at the given location into the plugin registry.
|
|
start()
Starts the plugin registry.
|
|
stop()
Shuts down the plugin registry.
|
Event Attributes | Event Name and Description |
---|---|
Dispatched when a plugin has been installed.
|
|
Dispatched when a plugin is starting due to a lazy activation.
|
|
resolved()
Dispatched when a plugin has been resolved.
|
|
started()
Dispatched when a plugin is started.
|
|
starting()
Dispatched when a plugin is starting.
|
|
stopped()
Dispatched when a plugin is stopped.
|
|
stopping()
Dispatched when a plugin is stopping.
|
|
Dispatched when a plugin has been uninstalled.
|
|
updated()
Dispatched when a plugin has been updated.
|
serviceRegistry
.
The plugin registry dispatches plugin events when one of its plugins changes state. Each such event contains a
plugin
field giving the affected orion.pluginregistry.Plugin.
- Parameters:
- {orion.serviceregistry.ServiceRegistry} serviceRegistry
- The service registry to register plugin-provided services with.
- {Object} opt_storage Optional, Default: localStorage
- Target object to read and write plugin metadata from.
- {Boolean} opt_visible Optional, Default: false
- Whether a loaded plugin's iframe will be displayed. By default it is not displayed.
- Returns:
- {orion.pluginregistry.Plugin} The installed plugin matching the given URL, or
null
if no such plugin is installed.
- Returns:
- {orion.pluginregistry.Plugin[]} An array of all installed plugins.
- Parameters:
- {String} url
- The location of the plugin.
- {Object} optManifest Optional
- The plugin metadata.
- Returns:
- {orion.Promise} A promise that will resolve when the plugin has been installed.
- Returns:
- {orion.Promise} A promise that will resolve when the registry has been fully started.
- Returns:
- {orion.Promise} A promise that will resolve when the registry has been stopped.
"installed"
.
"lazy activation"
.
"resolved"
.
"started"
.
"starting"
.
"stopped"
.
"stopping"
.
"uninstalled"
.
"updated"
.