public final class SingleConfigurationConfigurable<Config extends RunConfiguration> extends SettingsEditorConfigurable<RunnerAndConfigurationSettings>
Configurable.Composite, Configurable.NoMargin, Configurable.NoScroll, Configurable.TopComponentController, Configurable.TopComponentProvider, Configurable.VariableProjectAppLevel, Configurable.WithEpDependencies| Modifier and Type | Field and Description |
|---|---|
static DataKey<java.lang.String> |
RUN_ON_TARGET_NAME_KEY |
myModifiedAPPLICATION_CONFIGURABLE, PROJECT_CONFIGURABLE| Modifier and Type | Method and Description |
|---|---|
void |
addNameListener(javax.swing.event.DocumentListener listener) |
void |
addSharedListener(java.awt.event.ActionListener listener) |
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.
|
RunnerAndConfigurationSettings |
createSnapshot(boolean cloneBeforeRunTasks) |
void |
disposeUIResources()
Notifies the configurable component that the Swing form will be closed.
|
static <Config extends RunConfiguration> |
editSettings(RunnerAndConfigurationSettings settings,
Executor executor) |
Config |
getConfiguration() |
java.lang.String |
getDisplayName()
Returns the visible name of the configurable component.
|
java.lang.String |
getFolderName() |
java.lang.String |
getHelpTopic()
Returns the topic in the help file which is shown when help for the configurable is requested.
|
java.lang.String |
getNameText() |
javax.swing.JTextField |
getNameTextField() |
boolean |
isModified()
Indicates whether the Swing form was modified or not.
|
boolean |
isStoredInFile() |
boolean |
isValid() |
void |
reset()
Loads the settings from the configurable component to the Swing form.
|
void |
setFolderName(java.lang.String folderName) |
void |
setNameText(java.lang.String name) |
java.lang.String |
toString() |
protected static JBScrollPane |
wrapWithScrollPane(javax.swing.JComponent component) |
getEditor, getSettingsgetPreferredFocusedComponent, setModifiedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisModified, isModified, isModified, isModifiedcancelpublic static final DataKey<java.lang.String> RUN_ON_TARGET_NAME_KEY
public static <Config extends RunConfiguration> SingleConfigurationConfigurable<Config> editSettings(RunnerAndConfigurationSettings settings, Executor executor)
public void apply()
throws ConfigurationException
UnnamedConfigurableapply in interface UnnamedConfigurableapply in class SettingsEditorConfigurable<RunnerAndConfigurationSettings>ConfigurationException - if values cannot be appliedpublic void reset()
UnnamedConfigurablereset in interface UnnamedConfigurablereset in class SettingsEditorConfigurable<RunnerAndConfigurationSettings>public 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 boolean isStoredInFile()
public final void disposeUIResources()
UnnamedConfigurabledisposeUIResources in interface UnnamedConfigurabledisposeUIResources in class SettingsEditorConfigurable<RunnerAndConfigurationSettings>public final java.lang.String getNameText()
public final void addNameListener(javax.swing.event.DocumentListener listener)
public final void addSharedListener(java.awt.event.ActionListener listener)
public final void setNameText(java.lang.String name)
public final boolean isValid()
public final javax.swing.JTextField getNameTextField()
public java.lang.String getDisplayName()
Configurablepublic java.lang.String getHelpTopic()
Configurablenull if no help is availablepublic Config getConfiguration()
public RunnerAndConfigurationSettings createSnapshot(boolean cloneBeforeRunTasks) throws ConfigurationException
ConfigurationExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setFolderName(java.lang.String folderName)
public java.lang.String getFolderName()
public boolean isModified()
UnnamedConfigurableisModified in interface UnnamedConfigurableisModified in class BaseConfigurabletrue if the settings were modified, false otherwiseprotected static JBScrollPane wrapWithScrollPane(javax.swing.JComponent component)