public abstract class ModuleElementsEditor extends java.lang.Object implements ModuleConfigurationEditor
| Modifier and Type | Class and Description |
|---|---|
static interface |
ModuleElementsEditor.ModuleElementsEditorListener |
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JComponent |
myComponent |
protected History |
myHistory |
protected Project |
myProject |
EMPTYAPPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE| Modifier | Constructor and Description |
|---|---|
protected |
ModuleElementsEditor(ModuleConfigurationState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(ModuleElementsEditor.ModuleElementsEditorListener listener) |
void |
apply()
Stores the settings from the Swing form to the configurable component.
|
void |
canApply() |
javax.swing.JComponent |
createComponent()
Creates new Swing form that enables user to configure the settings.
|
protected abstract javax.swing.JComponent |
createComponentImpl() |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
protected void |
fireConfigurationChanged() |
javax.swing.JComponent |
getComponent() |
protected ModifiableRootModel |
getModel() |
protected ModuleConfigurationState |
getState() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
void |
moduleCompileOutputChanged(java.lang.String baseUrl,
java.lang.String moduleName) |
protected void |
registerDisposable(Disposable disposable) |
void |
setHistory(History history) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmoduleStateChanged, saveDatagetDisplayName, getHelpTopic, getPreferredFocusedComponent, isModified, isModified, isModified, isModifiedcancel, resetprotected final Project myProject
protected javax.swing.JComponent myComponent
protected History myHistory
protected ModuleElementsEditor(ModuleConfigurationState state)
public void setHistory(History history)
public void addListener(ModuleElementsEditor.ModuleElementsEditorListener listener)
protected void fireConfigurationChanged()
public boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurabletrue if the settings were modified, false otherwiseprotected ModifiableRootModel getModel()
protected ModuleConfigurationState getState()
public void canApply()
throws ConfigurationException
ConfigurationExceptionpublic void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableConfigurationException - if values cannot be appliedpublic void moduleCompileOutputChanged(java.lang.String baseUrl,
java.lang.String moduleName)
public void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurablepublic final 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()public javax.swing.JComponent getComponent()
protected void registerDisposable(Disposable disposable)
protected abstract javax.swing.JComponent createComponentImpl()