public class CodeStyleConfigurableWrapper extends java.lang.Object implements SearchableConfigurable, Configurable.NoMargin, Configurable.NoScroll, OptionsContainingConfigurable
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 CodeStyleMainPanel |
myPanel |
APPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE
EMPTY
Constructor and Description |
---|
CodeStyleConfigurableWrapper(CodeStyleSettingsProvider provider,
CodeStyleSettingsPanelFactory factory,
CodeStyleSchemesConfigurable owner) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
applyPanel() |
protected boolean |
canBeShared() |
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.Runnable |
enableSearch(java.lang.String option) |
static java.lang.String |
getConfigurableId(java.lang.String configurableDisplayName) |
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.
|
java.lang.Class<?> |
getOriginalClass()
When building an index of searchable options, it's important to know a class which caused the creation of a configurable.
|
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
boolean |
isPanelModified() |
java.util.Set<java.lang.String> |
processListOptions() |
java.util.Map<java.lang.String,java.util.Set<java.lang.String>> |
processListOptionsWithPaths() |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
resetPanel() |
void |
selectTab(java.lang.String tab) |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPreferredFocusedComponent, isModified, isModified, isModified, isModified
cancel
protected CodeStyleMainPanel myPanel
public CodeStyleConfigurableWrapper(CodeStyleSettingsProvider provider, CodeStyleSettingsPanelFactory factory, CodeStyleSchemesConfigurable owner)
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 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 boolean canBeShared()
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 resetPanel()
public java.lang.String toString()
toString
in class java.lang.Object
public void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
public java.lang.String getId()
SearchableConfigurable
getId
in interface SearchableConfigurable
ConfigurableEP.id
public java.lang.Class<?> getOriginalClass()
SearchableConfigurable
CompositeConfigurable
.
getOriginalClass
in interface SearchableConfigurable
public void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
public boolean isPanelModified()
public void applyPanel() throws ConfigurationException
ConfigurationException
public java.util.Set<java.lang.String> processListOptions()
processListOptions
in interface OptionsContainingConfigurable
public java.util.Map<java.lang.String,java.util.Set<java.lang.String>> processListOptionsWithPaths()
processListOptionsWithPaths
in interface OptionsContainingConfigurable
public void selectTab(java.lang.String tab)
public static java.lang.String getConfigurableId(java.lang.String configurableDisplayName)
public java.lang.Runnable enableSearch(java.lang.String option)
enableSearch
in interface SearchableConfigurable
option
- setting search query