public class TodoConfigurable extends java.lang.Object implements SearchableConfigurable, Configurable.NoScroll
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.Parent
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies
Modifier and Type | Field and Description |
---|---|
protected java.util.List<TodoFilter> |
myFilters |
protected java.util.List<TodoPattern> |
myPatterns |
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
Constructor and Description |
---|
TodoConfigurable()
Invoked by reflection
|
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
protected boolean |
areFiltersModified() |
protected boolean |
arePatternsModified() |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
java.lang.String |
getHelpTopic()
Returns the topic in the help file which is shown when help for the configurable is requested.
|
java.lang.String |
getId()
Unique configurable id.
|
protected TodoPattern [] |
getTodoPatternsToDisplay(TodoConfiguration todoConfiguration) |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
protected void |
stopEditing() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableSearch, getOriginalClass
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel
protected final java.util.List<TodoPattern> myPatterns
protected final java.util.List<TodoFilter> myFilters
protected boolean arePatternsModified()
protected boolean areFiltersModified()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
true
if the settings were modified, false
otherwisepublic void apply() throws ConfigurationException
UnnamedConfigurable
apply
in interface UnnamedConfigurable
ConfigurationException
- if values cannot be appliedpublic void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public javax.swing.JComponent createComponent()
UnnamedConfigurable
Also this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent
in interface UnnamedConfigurable
null
if it cannot be createdUnnamedConfigurable.disposeUIResources()
protected void stopEditing()
public java.lang.String getDisplayName()
Configurable
getDisplayName
in interface Configurable
public java.lang.String getHelpTopic()
Configurable
getHelpTopic
in interface Configurable
null
if no help is availablepublic void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
protected TodoPattern [] getTodoPatternsToDisplay(TodoConfiguration todoConfiguration)
public java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id