public final class IntentionManagerSettings extends java.lang.Object implements PersistentStateComponent<Element>, Disposable
Disposable.Parent| Constructor and Description |
|---|
IntentionManagerSettings() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
static IntentionManagerSettings |
getInstance() |
java.util.List<IntentionActionMetaData> |
getMetaData() |
Element |
getState() |
boolean |
isEnabled(IntentionAction action) |
boolean |
isEnabled(IntentionActionMetaData metaData) |
boolean |
isShowLightBulb(IntentionAction action) |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
setEnabled(IntentionAction action,
boolean enabled) |
void |
setEnabled(IntentionActionMetaData metaData,
boolean enabled) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic void dispose()
Disposabledispose in interface Disposablepublic static IntentionManagerSettings getInstance()
public boolean isShowLightBulb(IntentionAction action)
public void loadState(Element element)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<Element>element - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public Element getState()
getState in interface PersistentStateComponent<Element>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic java.util.List<IntentionActionMetaData> getMetaData()
public boolean isEnabled(IntentionActionMetaData metaData)
public void setEnabled(IntentionActionMetaData metaData, boolean enabled)
public boolean isEnabled(IntentionAction action)
public void setEnabled(IntentionAction action, boolean enabled)