public class CodeStyleConfigurableWrapper extends java.lang.Object implements SearchableConfigurable, Configurable.NoMargin, Configurable.NoScroll, OptionsContainingConfigurable
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.ParentConfigurable.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_CONFIGURABLEEMPTY| 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, waitgetPreferredFocusedComponent, isModified, isModified, isModified, isModifiedcancelprotected CodeStyleMainPanel myPanel
public CodeStyleConfigurableWrapper(CodeStyleSettingsProvider provider, CodeStyleSettingsPanelFactory factory, CodeStyleSchemesConfigurable owner)
public java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic java.lang.String getHelpTopic()
ConfigurablegetHelpTopic in interface Configurablenull if no help is availablepublic javax.swing.JComponent createComponent()
UnnamedConfigurableAlso this place is designed to allocate resources (subscriptions/listeners etc.)
createComponent in interface UnnamedConfigurablenull if it cannot be createdUnnamedConfigurable.disposeUIResources()protected boolean canBeShared()
public boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurabletrue if the settings were modified, false otherwisepublic void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableConfigurationException - if values cannot be appliedpublic void resetPanel()
public java.lang.String toString()
toString in class java.lang.Objectpublic void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablepublic java.lang.String getId()
SearchableConfigurablegetId in interface SearchableConfigurableConfigurableEP.idpublic java.lang.Class<?> getOriginalClass()
SearchableConfigurableCompositeConfigurable.
getOriginalClass in interface SearchableConfigurablepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic boolean isPanelModified()
public void applyPanel()
throws ConfigurationException
ConfigurationExceptionpublic java.util.Set<java.lang.String> processListOptions()
processListOptions in interface OptionsContainingConfigurablepublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> processListOptionsWithPaths()
processListOptionsWithPaths in interface OptionsContainingConfigurablepublic 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 SearchableConfigurableoption - setting search query