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, waitinitializeComponent, noStateLoadedpublic 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.XmlSerializerpublic void loadState(SliceToolwindowSettings state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<SliceToolwindowSettings>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)