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 |
myModified
APPLICATION_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, getSettings
getPreferredFocusedComponent, setModified
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isModified, isModified, isModified, isModified
cancel
public 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
UnnamedConfigurable
apply
in interface UnnamedConfigurable
apply
in class SettingsEditorConfigurable<RunnerAndConfigurationSettings>
ConfigurationException
- if values cannot be appliedpublic void reset()
UnnamedConfigurable
reset
in interface UnnamedConfigurable
reset
in class SettingsEditorConfigurable<RunnerAndConfigurationSettings>
public final 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()
public boolean isStoredInFile()
public final void disposeUIResources()
UnnamedConfigurable
disposeUIResources
in interface UnnamedConfigurable
disposeUIResources
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()
Configurable
public java.lang.String getHelpTopic()
Configurable
null
if no help is availablepublic Config getConfiguration()
public RunnerAndConfigurationSettings createSnapshot(boolean cloneBeforeRunTasks) throws ConfigurationException
ConfigurationException
public java.lang.String toString()
toString
in class java.lang.Object
public void setFolderName(java.lang.String folderName)
public java.lang.String getFolderName()
public boolean isModified()
UnnamedConfigurable
isModified
in interface UnnamedConfigurable
isModified
in class BaseConfigurable
true
if the settings were modified, false
otherwiseprotected static JBScrollPane wrapWithScrollPane(javax.swing.JComponent component)