public class SliceManager extends java.lang.Object implements PersistentStateComponent<com.intellij.slicer.SliceManager.StoredSettingsBean>
Constructor and Description |
---|
SliceManager(Project project) |
Modifier and Type | Method and Description |
---|---|
void |
createToolWindow(boolean dataFlowToThis,
SliceRootNode rootNode,
boolean splitByLeafExpressions,
java.lang.String displayName) |
static java.lang.String |
getElementDescription(java.lang.String prefix,
PsiElement element,
java.lang.String suffix) |
static SliceManager |
getInstance(Project project) |
com.intellij.slicer.SliceManager.StoredSettingsBean |
getState() |
void |
loadState(com.intellij.slicer.SliceManager.StoredSettingsBean state)
This method is called when new component state is loaded.
|
void |
slice(PsiElement element,
boolean dataFlowToThis,
SliceHandler handler) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public SliceManager(Project project)
public static SliceManager getInstance(Project project)
public void slice(PsiElement element, boolean dataFlowToThis, SliceHandler handler)
public void createToolWindow(boolean dataFlowToThis, SliceRootNode rootNode, boolean splitByLeafExpressions, java.lang.String displayName)
public static java.lang.String getElementDescription(java.lang.String prefix, PsiElement element, java.lang.String suffix)
public com.intellij.slicer.SliceManager.StoredSettingsBean getState()
getState
in interface PersistentStateComponent<com.intellij.slicer.SliceManager.StoredSettingsBean>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(com.intellij.slicer.SliceManager.StoredSettingsBean state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<com.intellij.slicer.SliceManager.StoredSettingsBean>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)