public class RunAnythingCache extends java.lang.Object implements PersistentStateComponent<RunAnythingCache.State>
| Modifier and Type | Class and Description |
|---|---|
static class |
RunAnythingCache.State |
| Constructor and Description |
|---|
RunAnythingCache() |
| Modifier and Type | Method and Description |
|---|---|
static RunAnythingCache |
getInstance(Project project) |
RunAnythingCache.State |
getState() |
boolean |
isGroupVisible(RunAnythingGroup group) |
void |
loadState(RunAnythingCache.State state)
This method is called when new component state is loaded.
|
void |
saveGroupVisibilityKey(java.lang.String key,
boolean visible)
Saves group visibility flag
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeComponent, noStateLoadedpublic static RunAnythingCache getInstance(Project project)
public boolean isGroupVisible(RunAnythingGroup group)
public void saveGroupVisibilityKey(java.lang.String key,
boolean visible)
key - to store visibility flagvisible - true if group should be shownpublic RunAnythingCache.State getState()
getState in interface PersistentStateComponent<RunAnythingCache.State>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(RunAnythingCache.State state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<RunAnythingCache.State>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)