public final class PluginManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INSTALLED_TXT |
static java.util.concurrent.ConcurrentMap<PluginDescriptor,Disposable> |
pluginDisposables |
Modifier and Type | Method and Description |
---|---|
void |
addDisablePluginListener(java.lang.Runnable listener) |
static boolean |
disablePlugin(java.lang.String id) |
boolean |
enablePlugin(PluginId id)
Consider using
enablePlugins(Collection, boolean) . |
static boolean |
enablePlugin(java.lang.String id)
Deprecated.
|
void |
enablePlugins(java.util.Collection<? extends PluginDescriptor> plugins,
boolean enabled) |
IdeaPluginDescriptor |
findEnabledPlugin(PluginId id) |
static java.util.List<java.lang.String> |
getDisabledPlugins()
Deprecated.
Bad API, sorry. Please use
PluginManagerCore.isDisabled(PluginId) to check plugin's state,
PluginManagerCore.disabledPlugins() to get an unmodifiable collection of all disabled plugins (rarely needed). |
static PluginManager |
getInstance() |
static java.util.List<? extends IdeaPluginDescriptor> |
getLoadedPlugins() |
static Logger |
getLogger() |
static java.nio.file.Path |
getOnceInstalledIfExists() |
static IdeaPluginDescriptor |
getPlugin(PluginId id)
Deprecated.
|
static PluginId |
getPluginByClassName(java.lang.String className) |
PluginId |
getPluginOrPlatformByClassName(java.lang.String className) |
static IdeaPluginDescriptor[] |
getPlugins() |
boolean |
hideImplementationDetails() |
boolean |
isDevelopedByJetBrains(PluginDescriptor plugin) |
boolean |
isDevelopedByJetBrains(java.lang.String vendorString) |
static boolean |
isPluginInstalled(PluginId id) |
static IdeaPluginDescriptorImpl |
loadDescriptor(java.nio.file.Path file,
java.lang.String fileName) |
static IdeaPluginDescriptorImpl |
loadDescriptor(java.nio.file.Path file,
java.lang.String fileName,
java.util.Set<PluginId> disabledPlugins,
boolean bundled) |
static void |
loadDescriptorFromFile(IdeaPluginDescriptorImpl descriptor,
java.nio.file.Path file,
SafeJdomFactory factory,
boolean ignoreMissingInclude,
java.util.Set<PluginId> disabledPlugins) |
static void |
processException(java.lang.Throwable t)
Deprecated.
In a plugin code simply throw error or log using
Logger.error(Throwable) . |
void |
removeDisablePluginListener(java.lang.Runnable listener) |
static void |
saveDisabledPlugins(java.util.Collection<java.lang.String> ids,
boolean append)
Deprecated.
|
void |
setPlugins(java.util.List<IdeaPluginDescriptor> descriptors) |
public static final java.lang.String INSTALLED_TXT
public static final java.util.concurrent.ConcurrentMap<PluginDescriptor,Disposable> pluginDisposables
public static PluginManager getInstance()
public void addDisablePluginListener(java.lang.Runnable listener)
public void removeDisablePluginListener(java.lang.Runnable listener)
public static java.nio.file.Path getOnceInstalledIfExists()
public static IdeaPluginDescriptorImpl loadDescriptor(java.nio.file.Path file, java.lang.String fileName)
public static IdeaPluginDescriptorImpl loadDescriptor(java.nio.file.Path file, java.lang.String fileName, java.util.Set<PluginId> disabledPlugins, boolean bundled)
@Deprecated public static void processException(java.lang.Throwable t)
Logger.error(Throwable)
.@Deprecated public static IdeaPluginDescriptor getPlugin(PluginId id)
PluginManagerCore.getPlugin(PluginId)
public static IdeaPluginDescriptor[] getPlugins()
public static boolean isPluginInstalled(PluginId id)
public static PluginId getPluginByClassName(java.lang.String className)
public static java.util.List<? extends IdeaPluginDescriptor> getLoadedPlugins()
public PluginId getPluginOrPlatformByClassName(java.lang.String className)
@Deprecated public static java.util.List<java.lang.String> getDisabledPlugins()
PluginManagerCore.isDisabled(PluginId)
to check plugin's state,
PluginManagerCore.disabledPlugins()
to get an unmodifiable collection of all disabled plugins (rarely needed).@Deprecated public static void saveDisabledPlugins(java.util.Collection<java.lang.String> ids, boolean append) throws java.io.IOException
PluginManagerCore.saveDisabledPlugins(Collection, boolean)
java.io.IOException
public static boolean disablePlugin(java.lang.String id)
@Deprecated public static boolean enablePlugin(java.lang.String id)
enablePlugins(Collection, boolean)
public boolean enablePlugin(PluginId id)
enablePlugins(Collection, boolean)
.public static Logger getLogger()
public static void loadDescriptorFromFile(IdeaPluginDescriptorImpl descriptor, java.nio.file.Path file, SafeJdomFactory factory, boolean ignoreMissingInclude, java.util.Set<PluginId> disabledPlugins) throws java.io.IOException, JDOMException
java.io.IOException
JDOMException
public boolean isDevelopedByJetBrains(PluginDescriptor plugin)
public boolean isDevelopedByJetBrains(java.lang.String vendorString)
public void enablePlugins(java.util.Collection<? extends PluginDescriptor> plugins, boolean enabled)
public IdeaPluginDescriptor findEnabledPlugin(PluginId id)
public boolean hideImplementationDetails()
public void setPlugins(java.util.List<IdeaPluginDescriptor> descriptors)