public abstract class LocatableConfigurationBase<T> extends RunConfigurationBase<T> implements LocatableConfiguration
RunConfigurationProducer
}.
It supports automatically generating a name for a configuration from its settings and keeping track of whether the name was changed by
the user.RunConfiguration.RestartSingletonResult
DATA_KEY
Modifier | Constructor and Description |
---|---|
protected |
LocatableConfigurationBase(Project project,
ConfigurationFactory factory) |
protected |
LocatableConfigurationBase(Project project,
ConfigurationFactory factory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActionName()
Returns the text of the context menu action to start this run configuration.
|
protected java.lang.Class<? extends LocatableRunConfigurationOptions> |
getDefaultOptionsClass()
Do not override this method, it is intended to support old (not migrated to options class) run configurations.
|
protected LocatableRunConfigurationOptions |
getOptions() |
boolean |
isGeneratedName()
Checks if the current name for the run configuration was automatically generated.
|
void |
setGeneratedName()
Renames the configuration to its suggested name.
|
void |
setNameChangedByUser(boolean nameChangedByUser) |
addLogFile, addLogFile, addPredefinedLogFile, canRunOn, checkRunnerSettings, checkSettingsBeforeRun, clone, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getFactory, getIcon, getLogFiles, getName, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, getState, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, loadState, onConfigurationCopied, onNewConfigurationCreated, readExternal, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setOptionsFromConfigurationFile, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toString, writeExternal
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
suggestedName
checkConfiguration, clone, createRunnerSettings, getBeforeRunTasks, getConfigurationEditor, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, readExternal, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setName, writeExternal
getIcon, getName, getState
protected LocatableConfigurationBase(Project project, ConfigurationFactory factory, java.lang.String name)
protected LocatableConfigurationBase(Project project, ConfigurationFactory factory)
protected LocatableRunConfigurationOptions getOptions()
getOptions
in class RunConfigurationBase<T>
protected java.lang.Class<? extends LocatableRunConfigurationOptions> getDefaultOptionsClass()
RunConfigurationBase
getDefaultOptionsClass
in class RunConfigurationBase<T>
public boolean isGeneratedName()
LocatableConfiguration
isGeneratedName
in interface LocatableConfiguration
LocatableConfiguration.suggestedName()
, false if it was manually entered or changed by the user.public void setGeneratedName()
public void setNameChangedByUser(boolean nameChangedByUser)
public java.lang.String getActionName()