public class SliceToolwindowSettings extends java.lang.Object implements PersistentStateComponent<SliceToolwindowSettings>
Constructor and Description |
---|
SliceToolwindowSettings() |
Modifier and Type | Method and Description |
---|---|
static SliceToolwindowSettings |
getInstance(Project project) |
SliceToolwindowSettings |
getState() |
boolean |
isAutoScroll() |
boolean |
isPreview() |
void |
loadState(SliceToolwindowSettings state)
This method is called when new component state is loaded.
|
void |
setAutoScroll(boolean autoScroll) |
void |
setPreview(boolean preview) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static SliceToolwindowSettings getInstance(Project project)
public boolean isPreview()
public void setPreview(boolean preview)
public boolean isAutoScroll()
public void setAutoScroll(boolean autoScroll)
public SliceToolwindowSettings getState()
getState
in interface PersistentStateComponent<SliceToolwindowSettings>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(SliceToolwindowSettings state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<SliceToolwindowSettings>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)