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, wait
getDownloads
public 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 PluginDescriptor
public java.nio.file.Path getPluginPath()
getPluginPath
in interface PluginDescriptor
public 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.IOException
JDOMException
public 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 PluginDescriptor
public java.lang.String getChangeNotes()
getChangeNotes
in interface PluginDescriptor
public java.lang.String getName()
getName
in interface PluginDescriptor
public java.lang.String getProductCode()
getProductCode
in interface PluginDescriptor
public java.util.Date getReleaseDate()
getReleaseDate
in interface PluginDescriptor
public int getReleaseVersion()
getReleaseVersion
in interface PluginDescriptor
public boolean isLicenseOptional()
isLicenseOptional
in interface PluginDescriptor
public PluginId [] getDependentPluginIds()
getDependentPluginIds
in interface PluginDescriptor
public PluginId [] getOptionalDependentPluginIds()
getOptionalDependentPluginIds
in interface PluginDescriptor
public java.lang.String getVendor()
getVendor
in interface PluginDescriptor
public java.lang.String getVersion()
getVersion
in interface PluginDescriptor
public java.lang.String getResourceBundleBaseName()
getResourceBundleBaseName
in interface PluginDescriptor
public java.lang.String getCategory()
getCategory
in interface PluginDescriptor
public 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 PluginDescriptor
public java.lang.String getVendorEmail()
getVendorEmail
in interface PluginDescriptor
public java.lang.String getVendorUrl()
getVendorUrl
in interface PluginDescriptor
public java.lang.String getUrl()
getUrl
in interface PluginDescriptor
public 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 PluginDescriptor
public java.lang.ClassLoader getPluginClassLoader()
getPluginClassLoader
in interface PluginDescriptor
public boolean getUseIdeaClassLoader()
public boolean isEnabled()
isEnabled
in interface PluginDescriptor
public void setEnabled(boolean enabled)
setEnabled
in interface PluginDescriptor
public Disposable getPluginDisposable()
getPluginDisposable
in interface PluginDescriptor
public java.lang.String getSinceBuild()
getSinceBuild
in interface PluginDescriptor
public java.lang.String getUntilBuild()
getUntilBuild
in interface PluginDescriptor
public boolean isBundled()
isBundled
in interface PluginDescriptor
public boolean allowBundledUpdate()
allowBundledUpdate
in interface PluginDescriptor
public boolean isImplementationDetail()
PluginDescriptor
isImplementationDetail
in interface PluginDescriptor
public java.util.List<PluginId> getModules()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String findOptionalDependencyConfigFile(PluginId pluginId)