public class TodoConfiguration extends java.lang.Object implements PersistentStateComponent<Element>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_MULTILINE |
static java.lang.String |
PROP_TODO_FILTERS |
static java.lang.String |
PROP_TODO_PATTERNS |
static Topic<java.beans.PropertyChangeListener> |
PROPERTY_CHANGE |
Constructor and Description |
---|
TodoConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
colorSettingsChanged() |
protected TodoPattern [] |
getDefaultPatterns()
Returns the list of default TO_DO patterns.
|
IndexPattern [] |
getIndexPatterns() |
static TodoConfiguration |
getInstance() |
Element |
getState() |
TodoFilter |
getTodoFilter(java.lang.String name) |
TodoFilter [] |
getTodoFilters() |
TodoPattern [] |
getTodoPatterns() |
boolean |
isMultiLine() |
void |
loadState(Element element)
This method is called when new component state is loaded.
|
void |
resetToDefaultTodoPatterns() |
void |
setMultiLine(boolean multiLine) |
void |
setTodoFilters(TodoFilter [] filters) |
void |
setTodoPatterns(TodoPattern [] todoPatterns) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static final Topic<java.beans.PropertyChangeListener> PROPERTY_CHANGE
public static final java.lang.String PROP_MULTILINE
public static final java.lang.String PROP_TODO_PATTERNS
public static final java.lang.String PROP_TODO_FILTERS
public static TodoConfiguration getInstance()
public void resetToDefaultTodoPatterns()
protected TodoPattern [] getDefaultPatterns()
public TodoPattern [] getTodoPatterns()
public IndexPattern [] getIndexPatterns()
public void setTodoPatterns(TodoPattern [] todoPatterns)
public TodoFilter getTodoFilter(java.lang.String name)
TodoFilter
with specified name
. Method returns
null
if there is no filter with name
.public TodoFilter [] getTodoFilters()
TodoFilter
s.public boolean isMultiLine()
public void setMultiLine(boolean multiLine)
public void setTodoFilters(TodoFilter [] filters)
public void loadState(Element element)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<Element>
element
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public Element getState()
getState
in interface PersistentStateComponent<Element>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void colorSettingsChanged()