public abstract class PluginReplacement extends java.lang.Object implements PluginAware
<extensions defaultExtensionNs="com.intellij"> <pluginReplacement implementation="qualified-class-name"/> </extensions>
| Modifier and Type | Field and Description |
|---|---|
static ExtensionPointName<PluginReplacement> |
EP_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
PluginReplacement(java.lang.String newPluginId) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNewPluginId() |
PluginDescriptor |
getOldPluginDescriptor() |
java.lang.String |
getReplacementMessage(IdeaPluginDescriptor oldPlugin,
IdeaPluginDescriptor newPlugin) |
void |
setPluginDescriptor(PluginDescriptor pluginDescriptor)
Called by extensions framework when extension is loaded from plugin.xml descriptor.
|
public static final ExtensionPointName<PluginReplacement> EP_NAME
public java.lang.String getReplacementMessage(IdeaPluginDescriptor oldPlugin, IdeaPluginDescriptor newPlugin)
public final void setPluginDescriptor(PluginDescriptor pluginDescriptor)
PluginAwareIf this method is implemented in a bean class
extension point and it also exposes the stored plugin description via getPluginDescriptor method, you must annotate the latter
with @Transient to ensure that serialization engine won't try to deserialize this property.
setPluginDescriptor in interface PluginAwarepluginDescriptor - descriptor of the plugin that provided this particular extension.public final PluginDescriptor getOldPluginDescriptor()
public final java.lang.String getNewPluginId()