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