public class PluginInstaller extends java.lang.Object implements java.lang.Runnable
Modifier and Type | Class and Description |
---|---|
static interface |
PluginInstaller.PluginInstallerListener |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(PluginInstaller.PluginInstallerListener listener)
Add a listener
|
static void |
desinstall(PluginDescriptor plugin,
boolean showConfirm)
Deprecated.
Use
desinstall(PluginDescriptor, boolean, boolean) instead. |
static void |
desinstall(PluginDescriptor plugin,
boolean showConfirm,
boolean showProgress)
Uninstall a plugin (asynchronous)
|
static boolean |
getDependencies(PluginDescriptor plugin,
java.util.List<PluginDescriptor> pluginsToInstall,
CancelableProgressFrame taskFrame,
boolean showError)
Resolve dependencies for specified plugin
|
static java.util.ArrayList<icy.plugin.PluginInstaller.PluginInstallInfo> |
getInstallFIFO()
return a copy of the install FIFO
|
static java.util.List<PluginDescriptor> |
getLocalDependenciesFrom(java.util.List<PluginDescriptor> plugins)
Return local plugins list which depend from the specified list of plugins.
|
static java.util.List<PluginDescriptor> |
getLocalDependenciesFrom(PluginDescriptor plugin)
Return local plugins list which depend from the specified plugin.
|
static void |
getLocalDependenciesOf(java.util.List<PluginDescriptor> result,
PluginDescriptor plugin)
Fill list with local dependencies (plugins) of specified plugin
|
static java.util.ArrayList<icy.plugin.PluginInstaller.PluginInstallInfo> |
getRemoveFIFO()
return a copy of the remove FIFO
|
static void |
install(PluginDescriptor plugin,
boolean showProgress)
Install a plugin (asynchronous)
|
static boolean |
isDesinstalling()
return true if PluginInstaller is desinstalling plugin(s)
|
static boolean |
isDesinstallingPlugin(PluginDescriptor plugin)
return true if specified plugin is currently being desinstalled or will be desinstalled
|
static boolean |
isInstalling()
return true if PluginInstaller is installing plugin(s)
|
static boolean |
isInstallingPlugin(PluginDescriptor plugin)
return true if specified plugin is currently being installed or will be installed
|
static boolean |
isProcessing()
return true if PluginInstaller is processing
|
static boolean |
isWaitingForDesinstall(PluginDescriptor plugin)
return true if 'plugin' is in the remove FIFO
|
static boolean |
isWaitingForInstall(PluginDescriptor plugin)
return true if 'plugin' is in the install FIFO
|
static java.util.List<PluginDescriptor> |
orderDependencies(java.util.List<PluginDescriptor> plugins)
Reorder the list so needed dependencies comes first in list
|
static void |
removeListener(PluginInstaller.PluginInstallerListener listener)
Remove a listener
|
void |
run() |
static void |
waitDesinstall()
Wait while installer is removing plugin.
|
static void |
waitInstall()
Wait while installer is installing plugin.
|
public static void install(PluginDescriptor plugin, boolean showProgress)
plugin
- the plugin to installshowProgress
- show a progress frame during processpublic static boolean isProcessing()
public static java.util.ArrayList<icy.plugin.PluginInstaller.PluginInstallInfo> getInstallFIFO()
public static void waitInstall()
public static boolean isInstalling()
public static boolean isWaitingForInstall(PluginDescriptor plugin)
public static boolean isInstallingPlugin(PluginDescriptor plugin)
public static void desinstall(PluginDescriptor plugin, boolean showConfirm, boolean showProgress)
plugin
- the plugin to uninstallshowConfirm
- show a confirmation dialogshowProgress
- show a progress frame during process@Deprecated public static void desinstall(PluginDescriptor plugin, boolean showConfirm)
desinstall(PluginDescriptor, boolean, boolean)
instead.public static java.util.ArrayList<icy.plugin.PluginInstaller.PluginInstallInfo> getRemoveFIFO()
public static void waitDesinstall()
public static boolean isDesinstalling()
public static boolean isWaitingForDesinstall(PluginDescriptor plugin)
public static boolean isDesinstallingPlugin(PluginDescriptor plugin)
public void run()
run
in interface java.lang.Runnable
public static void getLocalDependenciesOf(java.util.List<PluginDescriptor> result, PluginDescriptor plugin)
public static java.util.List<PluginDescriptor> getLocalDependenciesFrom(java.util.List<PluginDescriptor> plugins)
public static java.util.List<PluginDescriptor> getLocalDependenciesFrom(PluginDescriptor plugin)
public static java.util.List<PluginDescriptor> orderDependencies(java.util.List<PluginDescriptor> plugins)
public static boolean getDependencies(PluginDescriptor plugin, java.util.List<PluginDescriptor> pluginsToInstall, CancelableProgressFrame taskFrame, boolean showError)
taskFrame
- public static void addListener(PluginInstaller.PluginInstallerListener listener)
listener
- public static void removeListener(PluginInstaller.PluginInstallerListener listener)
listener
-