public final class InstalledPluginsState
extends java.lang.Object
Constructor and Description |
---|
InstalledPluginsState() |
Modifier and Type | Method and Description |
---|---|
void |
clearShutdownCallback() |
java.util.Collection<IdeaPluginDescriptor> |
getInstalledPlugins() |
static InstalledPluginsState |
getInstance() |
static InstalledPluginsState |
getInstanceIfLoaded() |
java.util.Collection<PluginId> |
getUpdatedPlugins() |
boolean |
hasNewerVersion(PluginId id) |
boolean |
isRestartRequired() |
void |
onDescriptorDownload(IdeaPluginDescriptor descriptor)
Should be called whenever a list of plugins is loaded from a repository to check if there is an updated version.
|
void |
onPluginInstall(IdeaPluginDescriptor descriptor,
boolean isUpdate,
boolean restartNeeded)
Should be called whenever a new plugin is installed or an existing one is updated.
|
void |
onPluginUninstall(IdeaPluginDescriptor descriptor,
boolean restartNeeded) |
void |
resetChangesAppliedWithoutRestart() |
void |
runShutdownCallback() |
void |
setRestartRequired(boolean restartRequired) |
void |
setShutdownCallback(java.lang.Runnable runnable) |
void |
trackPluginInstallation(java.lang.Runnable runnable) |
boolean |
wasInstalled(PluginId id) |
boolean |
wasInstalledWithoutRestart(PluginId id) |
boolean |
wasUninstalledWithoutRestart(PluginId id) |
boolean |
wasUpdated(PluginId id) |
public static InstalledPluginsState getInstanceIfLoaded()
public static InstalledPluginsState getInstance()
public java.util.Collection<IdeaPluginDescriptor> getInstalledPlugins()
public java.util.Collection<PluginId> getUpdatedPlugins()
public boolean hasNewerVersion(PluginId id)
public boolean wasInstalled(PluginId id)
public boolean wasInstalledWithoutRestart(PluginId id)
public boolean wasUninstalledWithoutRestart(PluginId id)
public boolean wasUpdated(PluginId id)
public void onDescriptorDownload(IdeaPluginDescriptor descriptor)
public void onPluginInstall(IdeaPluginDescriptor descriptor, boolean isUpdate, boolean restartNeeded)
public void onPluginUninstall(IdeaPluginDescriptor descriptor, boolean restartNeeded)
public void resetChangesAppliedWithoutRestart()
public void trackPluginInstallation(java.lang.Runnable runnable)
public void setShutdownCallback(java.lang.Runnable runnable)
public void clearShutdownCallback()
public void runShutdownCallback()
public boolean isRestartRequired()
public void setRestartRequired(boolean restartRequired)