public abstract class ModuleAwareProjectConfigurable<T extends UnnamedConfigurable> extends java.lang.Object implements SearchableConfigurable, Configurable.NoScroll
SearchableConfigurable.Delegate, SearchableConfigurable.Merged, SearchableConfigurable.ParentConfigurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependenciesAPPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE| Constructor and Description |
|---|
ModuleAwareProjectConfigurable(Project project,
java.lang.String displayName,
java.lang.String helpTopic) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected T |
createDefaultProjectConfigurable() |
protected abstract T |
createModuleConfigurable(Module module) |
protected T |
createProjectConfigurable()
This configurable is for project-wide 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 Project |
getProject() |
protected javax.swing.Icon |
getProjectConfigurableItemIcon() |
protected java.lang.String |
getProjectConfigurableItemName() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
protected boolean |
isSuitableForModule(Module module) |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenableSearch, getOriginalClassgetPreferredFocusedComponent, isModified, isModified, isModified, isModifiedcancelpublic ModuleAwareProjectConfigurable(Project project, java.lang.String displayName, java.lang.String helpTopic)
public java.lang.String getDisplayName()
ConfigurablegetDisplayName in interface Configurablepublic java.lang.String getHelpTopic()
ConfigurablegetHelpTopic in interface Configurablenull if no help is availableprotected boolean isSuitableForModule(Module module)
public 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 T createDefaultProjectConfigurable()
protected T createProjectConfigurable()
protected java.lang.String getProjectConfigurableItemName()
protected javax.swing.Icon getProjectConfigurableItemIcon()
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 reset()
UnnamedConfigurablereset in interface UnnamedConfigurablepublic void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic java.lang.String getId()
SearchableConfigurablegetId in interface SearchableConfigurableConfigurableEP.idprotected final Project getProject()