public final class IdeaPluginDescriptorImpl extends java.lang.Object implements IdeaPluginDescriptor, PluginDescriptor
| Modifier and Type | Class and Description |
|---|---|
static class |
IdeaPluginDescriptorImpl.OS |
| Modifier and Type | Field and Description |
|---|---|
static IdeaPluginDescriptorImpl[] |
EMPTY_ARRAY |
static java.util.regex.Pattern |
EXPLICIT_BIG_NUMBER_PATTERN |
| Constructor and Description |
|---|
IdeaPluginDescriptorImpl(java.nio.file.Path pluginPath,
boolean bundled) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowBundledUpdate() |
static java.lang.String |
convertExplicitBigNumberInUntilBuildToStar(java.lang.String build)
Convert build number like '146.9999' to '146.*' (like plugin repository does) to ensure that plugins which have such values in
'until-build' attribute will be compatible with 146.SNAPSHOT build.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
findOptionalDependencyConfigFile(PluginId pluginId) |
java.util.List<Element> |
getActionDescriptionElements() |
ContainerDescriptor |
getApp() |
ContainerDescriptor |
getAppContainerDescriptor() |
java.nio.file.Path |
getBasePath() |
java.lang.String |
getCategory() |
java.lang.String |
getChangeNotes() |
java.util.List<java.io.File> |
getClassPath()
Deprecated.
Do not use. If you want to get class loader for own plugin, just use your current class's class loader.
|
PluginId [] |
getDependentPluginIds() |
java.lang.String |
getDescription() |
java.util.Map<java.lang.String,java.util.List<Element>> |
getExtensions() |
ContainerDescriptor |
getModule() |
ContainerDescriptor |
getModuleContainerDescriptor() |
java.util.List<PluginId> |
getModules() |
java.lang.String |
getName() |
PluginId [] |
getOptionalDependentPluginIds() |
java.io.File |
getPath() |
java.lang.ClassLoader |
getPluginClassLoader() |
Disposable |
getPluginDisposable() |
PluginId |
getPluginId() |
java.nio.file.Path |
getPluginPath() |
java.lang.String |
getProductCode() |
ContainerDescriptor |
getProject() |
ContainerDescriptor |
getProjectContainerDescriptor() |
java.util.Date |
getReleaseDate() |
int |
getReleaseVersion() |
java.lang.String |
getResourceBundleBaseName() |
java.lang.String |
getSinceBuild() |
java.lang.String |
getUntilBuild() |
java.lang.String |
getUrl() |
boolean |
getUseIdeaClassLoader() |
java.lang.String |
getVendor() |
java.lang.String |
getVendorEmail() |
java.lang.String |
getVendorUrl() |
java.lang.String |
getVersion() |
int |
hashCode() |
boolean |
isBundled() |
boolean |
isDeleted() |
boolean |
isEnabled() |
boolean |
isImplementationDetail()
If true, this plugin is hidden from the list of installed plugins in Settings | Plugins.
|
boolean |
isLicenseOptional() |
void |
loadFromFile(java.io.File file,
SafeJdomFactory factory,
boolean ignoreMissingInclude)
|
boolean |
readExternal(Element element,
java.nio.file.Path basePath,
com.intellij.ide.plugins.PathBasedJdomXIncluder.PathResolver<?> pathResolver,
com.intellij.ide.plugins.DescriptorLoadingContext context,
IdeaPluginDescriptorImpl rootDescriptor) |
void |
registerExtensionPoints(ExtensionsAreaImpl area,
ComponentManager componentManager) |
void |
registerExtensions(ExtensionsAreaImpl area,
ComponentManager componentManager,
boolean notifyListeners) |
void |
registerExtensions(ExtensionsAreaImpl area,
ComponentManager componentManager,
IdeaPluginDescriptorImpl rootDescriptor,
java.util.List<java.lang.Runnable> listenerCallbacks) |
void |
setCategory(java.lang.String category) |
void |
setDeleted(boolean deleted) |
void |
setEnabled(boolean enabled) |
void |
setLoader(java.lang.ClassLoader loader) |
void |
setUrl(java.lang.String val) |
java.lang.String |
toString() |
boolean |
unloadClassLoader() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDownloadspublic static final IdeaPluginDescriptorImpl[] EMPTY_ARRAY
public static final java.util.regex.Pattern EXPLICIT_BIG_NUMBER_PATTERN
public IdeaPluginDescriptorImpl(java.nio.file.Path pluginPath,
boolean bundled)
public ContainerDescriptor getApp()
public ContainerDescriptor getProject()
public ContainerDescriptor getModule()
public java.io.File getPath()
getPath in interface PluginDescriptorpublic java.nio.file.Path getPluginPath()
getPluginPath in interface PluginDescriptorpublic java.nio.file.Path getBasePath()
@Deprecated
public void loadFromFile(java.io.File file,
SafeJdomFactory factory,
boolean ignoreMissingInclude)
throws java.io.IOException,
JDOMException
PluginManager.loadDescriptorFromFile(IdeaPluginDescriptorImpl, Path, SafeJdomFactory, boolean, Set)java.io.IOExceptionJDOMExceptionpublic boolean readExternal(Element element,
java.nio.file.Path basePath,
com.intellij.ide.plugins.PathBasedJdomXIncluder.PathResolver<?> pathResolver,
com.intellij.ide.plugins.DescriptorLoadingContext context,
IdeaPluginDescriptorImpl rootDescriptor)
public static java.lang.String convertExplicitBigNumberInUntilBuildToStar(java.lang.String build)
public void registerExtensionPoints(ExtensionsAreaImpl area, ComponentManager componentManager)
public ContainerDescriptor getAppContainerDescriptor()
public ContainerDescriptor getProjectContainerDescriptor()
public ContainerDescriptor getModuleContainerDescriptor()
public void registerExtensions(ExtensionsAreaImpl area, ComponentManager componentManager, boolean notifyListeners)
public void registerExtensions(ExtensionsAreaImpl area, ComponentManager componentManager, IdeaPluginDescriptorImpl rootDescriptor, java.util.List<java.lang.Runnable> listenerCallbacks)
public java.lang.String getDescription()
getDescription in interface PluginDescriptorpublic java.lang.String getChangeNotes()
getChangeNotes in interface PluginDescriptorpublic java.lang.String getName()
getName in interface PluginDescriptorpublic java.lang.String getProductCode()
getProductCode in interface PluginDescriptorpublic java.util.Date getReleaseDate()
getReleaseDate in interface PluginDescriptorpublic int getReleaseVersion()
getReleaseVersion in interface PluginDescriptorpublic boolean isLicenseOptional()
isLicenseOptional in interface PluginDescriptorpublic PluginId [] getDependentPluginIds()
getDependentPluginIds in interface PluginDescriptorpublic PluginId [] getOptionalDependentPluginIds()
getOptionalDependentPluginIds in interface PluginDescriptorpublic java.lang.String getVendor()
getVendor in interface PluginDescriptorpublic java.lang.String getVersion()
getVersion in interface PluginDescriptorpublic java.lang.String getResourceBundleBaseName()
getResourceBundleBaseName in interface PluginDescriptorpublic java.lang.String getCategory()
getCategory in interface PluginDescriptorpublic void setCategory(java.lang.String category)
public java.util.Map<java.lang.String,java.util.List<Element>> getExtensions()
@Deprecated public java.util.List<java.io.File> getClassPath()
public java.util.List<Element> getActionDescriptionElements()
getActionDescriptionElements in interface PluginDescriptorpublic java.lang.String getVendorEmail()
getVendorEmail in interface PluginDescriptorpublic java.lang.String getVendorUrl()
getVendorUrl in interface PluginDescriptorpublic java.lang.String getUrl()
getUrl in interface PluginDescriptorpublic void setUrl(java.lang.String val)
public boolean isDeleted()
public void setDeleted(boolean deleted)
public void setLoader(java.lang.ClassLoader loader)
public boolean unloadClassLoader()
public PluginId getPluginId()
getPluginId in interface PluginDescriptorpublic java.lang.ClassLoader getPluginClassLoader()
getPluginClassLoader in interface PluginDescriptorpublic boolean getUseIdeaClassLoader()
public boolean isEnabled()
isEnabled in interface PluginDescriptorpublic void setEnabled(boolean enabled)
setEnabled in interface PluginDescriptorpublic Disposable getPluginDisposable()
getPluginDisposable in interface PluginDescriptorpublic java.lang.String getSinceBuild()
getSinceBuild in interface PluginDescriptorpublic java.lang.String getUntilBuild()
getUntilBuild in interface PluginDescriptorpublic boolean isBundled()
isBundled in interface PluginDescriptorpublic boolean allowBundledUpdate()
allowBundledUpdate in interface PluginDescriptorpublic boolean isImplementationDetail()
PluginDescriptorisImplementationDetail in interface PluginDescriptorpublic java.util.List<PluginId> getModules()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String findOptionalDependencyConfigFile(PluginId pluginId)