GROUP_PROPERTY, PLUGIN_PROPERTY
Constructor and Description |
---|
PluginManager() |
Modifier and Type | Method and Description |
---|---|
PluginPreferences |
getPreferences()
Returns an object that provides access to current PluginManager settings.
|
boolean |
install(Component parent,
Collection<PluginInfo> plugins)
Installs specified plugins into the application extensions directories.
|
void |
offerUpdate()
Offers the user to update installed plugins and executes user's command.
|
void |
restart(Component parentComponent)
Displays dialog informing the user that the application needs to be restarted.
|
void |
run() |
void |
setPluginListHandler(PluginListHandler pluginListHandler) |
void |
showPluginManager()
Displays PluginManagerDialog.
|
boolean |
uninstall(Component parent,
Collection<PluginInfo> plugins)
Uninstall specified plugins.
|
boolean |
update(Component parent)
Updates all installed plugins for which newer versions are available.
|
boolean |
update(Component parent,
Collection<PluginInfo> plugins)
Downloads, installs, and loads latest versions of files for the specified plugins.
|
canBeShutDown, getApplication
public PluginPreferences getPreferences()
public void setPluginListHandler(PluginListHandler pluginListHandler)
public void showPluginManager()
public void offerUpdate()
public boolean update(Component parent)
parent
- Component to be used as parent by any GUI windows displayed while
executing this method, if any. If null, no error notifications
will be displayed, and IllegalArgumentException will be thrown instead.IllegalArgumentException
- if errors occur while updating, and parent was not specified.public boolean install(Component parent, Collection<PluginInfo> plugins)
parent
- Component to be used as parent by any GUI windows displayed while
executing this method, if any. If null, no error notifications
will be displayed, and IllegalArgumentException will be thrown instead.plugins
- Plugins to be installed. May or may not contain required dependencies.IllegalArgumentException
- if errors occur while updating, and parent was not specified.public boolean uninstall(Component parent, Collection<PluginInfo> plugins)
parent
- Component to be used as parent by any GUI windows displayed while
executing this method, if any. If null, no error notifications
will be displayed, and IllegalArgumentException will be thrown instead.plugins
- Plugins to be uninstalled. May or may not contain required dependencies.IllegalArgumentException
- if errors occur while updating, and parent was not specified.public boolean update(Component parent, Collection<PluginInfo> plugins)
parent
- Component to be used as parent by any GUI windows displayed while
executing this method, if any. If null, no error notifications
will be displayed, and IllegalArgumentException will be thrown instead.plugins
- Plugins to update.IllegalArgumentException
- if the update fails, and parent was not specified.public void restart(Component parentComponent)
parentComponent
- Parent component for the dialog. If null, the application window is used as a parent.Copyright © 2000–2017 FreeHEP. All rights reserved.