public abstract class RunConfigurationBase<T> extends UserDataHolderBase implements RunConfiguration, TargetAwareRunProfile, ConfigurationCreationListener
RunConfiguration.RestartSingletonResult
DATA_KEY
Modifier | Constructor and Description |
---|---|
protected |
RunConfigurationBase(Project project,
ConfigurationFactory factory,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addLogFile(java.lang.String file,
java.lang.String alias,
boolean checked) |
void |
addLogFile(java.lang.String file,
java.lang.String alias,
boolean checked,
boolean skipContent,
boolean showAll) |
void |
addPredefinedLogFile(PredefinedLogFile predefinedLogFile) |
boolean |
canRunOn(ExecutionTarget target)
Checks if this configuration supports running on the provided target (see
ExecutionTarget for details). |
void |
checkRunnerSettings(ProgramRunner runner,
RunnerSettings runnerSettings,
ConfigurationPerRunnerSettings configurationPerRunnerSettings) |
void |
checkSettingsBeforeRun() |
RunConfiguration |
clone()
Clones the run configuration.
|
boolean |
collectOutputFromProcessHandler() |
void |
createAdditionalTabComponents(AdditionalTabComponentManager manager,
ProcessHandler startedProcess) |
void |
customizeLogConsole(LogConsole console) |
boolean |
equals(java.lang.Object obj) |
boolean |
excludeCompileBeforeLaunchOption()
|
java.util.ArrayList<LogFileOptions> |
getAllLogFiles() |
java.util.List<BeforeRunTask<?>> |
getBeforeRunTasks() |
protected java.lang.Class<? extends RunConfigurationOptions> |
getDefaultOptionsClass()
Do not override this method, it is intended to support old (not migrated to options class) run configurations.
|
ConfigurationFactory |
getFactory()
Returns the factory that has created the run configuration.
|
javax.swing.Icon |
getIcon()
Returns the icon for the run configuration.
|
java.util.List<LogFileOptions> |
getLogFiles() |
java.lang.String |
getName()
Returns the name of the run configuration.
|
protected RunConfigurationOptions |
getOptions() |
protected java.lang.Class<? extends RunConfigurationOptions> |
getOptionsClass()
Do not override this method, use
ConfigurationFactory.getOptionsClass() . |
LogFileOptions |
getOptionsForPredefinedLogFile(PredefinedLogFile predefinedLogFile) |
java.lang.String |
getOutputFilePath() |
java.util.List<PredefinedLogFile> |
getPredefinedLogFiles() |
Project |
getProject()
Returns the project in which the run configuration exists.
|
T |
getState() |
int |
hashCode() |
boolean |
isAllowRunningInParallel() |
protected boolean |
isNewSerializationUsed()
Deprecated.
Not used anymore.
|
boolean |
isSaveOutputToFile() |
boolean |
isShowConsoleOnStdErr() |
boolean |
isShowConsoleOnStdOut() |
void |
loadState(T state) |
void |
onConfigurationCopied() |
void |
onNewConfigurationCreated()
Called when configuration created via UI (Add Configuration).
|
void |
readExternal(Element element) |
void |
removeAllLogFiles() |
void |
removeAllPredefinedLogFiles() |
void |
setAllowRunningInParallel(boolean value) |
void |
setBeforeRunTasks(java.util.List<BeforeRunTask<?>> value) |
void |
setFileOutputPath(java.lang.String fileOutputPath) |
void |
setName(java.lang.String name)
Sets the name of the configuration.
|
void |
setOptionsFromConfigurationFile(BaseState state) |
void |
setSaveOutputToFile(boolean redirectOutput) |
void |
setShowConsoleOnStdErr(boolean showConsoleOnStdErr) |
void |
setShowConsoleOnStdOut(boolean showConsoleOnStdOut) |
java.lang.String |
toString() |
void |
writeExternal(Element element) |
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
finalize, getClass, notify, notifyAll, wait, wait, wait
checkConfiguration, createRunnerSettings, getConfigurationEditor, getId, getPresentableType, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, restartSingleton
getState
protected RunConfigurationBase(Project project, ConfigurationFactory factory, java.lang.String name)
protected RunConfigurationOptions getOptions()
public java.util.List<BeforeRunTask<?>> getBeforeRunTasks()
getBeforeRunTasks
in interface RunConfiguration
public void setBeforeRunTasks(java.util.List<BeforeRunTask<?>> value)
setBeforeRunTasks
in interface RunConfiguration
public final ConfigurationFactory getFactory()
RunConfiguration
getFactory
in interface RunConfiguration
public final void setName(java.lang.String name)
RunConfiguration
setName
in interface RunConfiguration
public final Project getProject()
RunConfiguration
getProject
in interface RunConfiguration
public javax.swing.Icon getIcon()
RunProfile
getIcon
in interface RunProfile
public final java.lang.String getName()
RunProfile
getName
in interface RunProfile
public final int hashCode()
hashCode
in class java.lang.Object
public void checkRunnerSettings(ProgramRunner runner, RunnerSettings runnerSettings, ConfigurationPerRunnerSettings configurationPerRunnerSettings) throws RuntimeConfigurationException
RuntimeConfigurationException
public void checkSettingsBeforeRun() throws RuntimeConfigurationException
RuntimeConfigurationException
public boolean canRunOn(ExecutionTarget target)
TargetAwareRunProfile
ExecutionTarget
for details).canRunOn
in interface TargetAwareRunProfile
target
- target provided by ExecutionTargetProvider
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public RunConfiguration clone()
RunConfiguration
clone
in interface RunConfiguration
clone
in class UserDataHolderBase
public LogFileOptions getOptionsForPredefinedLogFile(PredefinedLogFile predefinedLogFile)
public void removeAllPredefinedLogFiles()
public void addPredefinedLogFile(PredefinedLogFile predefinedLogFile)
public java.util.List<PredefinedLogFile> getPredefinedLogFiles()
public java.util.ArrayList<LogFileOptions> getAllLogFiles()
public java.util.List<LogFileOptions> getLogFiles()
public void addLogFile(java.lang.String file, java.lang.String alias, boolean checked)
public void addLogFile(java.lang.String file, java.lang.String alias, boolean checked, boolean skipContent, boolean showAll)
public void removeAllLogFiles()
public void createAdditionalTabComponents(AdditionalTabComponentManager manager, ProcessHandler startedProcess)
public void customizeLogConsole(LogConsole console)
public T getState()
public void loadState(T state)
public void readExternal(Element element) throws InvalidDataException
readExternal
in interface RunConfiguration
InvalidDataException
public void writeExternal(Element element)
writeExternal
in interface RunConfiguration
public void setOptionsFromConfigurationFile(BaseState state)
protected java.lang.Class<? extends RunConfigurationOptions> getOptionsClass()
ConfigurationFactory.getOptionsClass()
.protected java.lang.Class<? extends RunConfigurationOptions> getDefaultOptionsClass()
public boolean isSaveOutputToFile()
public void setSaveOutputToFile(boolean redirectOutput)
public boolean isShowConsoleOnStdOut()
public void setShowConsoleOnStdOut(boolean showConsoleOnStdOut)
public boolean isShowConsoleOnStdErr()
public void setShowConsoleOnStdErr(boolean showConsoleOnStdErr)
public java.lang.String getOutputFilePath()
public void setFileOutputPath(java.lang.String fileOutputPath)
public boolean collectOutputFromProcessHandler()
@Deprecated public boolean excludeCompileBeforeLaunchOption()
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated protected boolean isNewSerializationUsed()
public final boolean isAllowRunningInParallel()
isAllowRunningInParallel
in interface RunConfiguration
public final void setAllowRunningInParallel(boolean value)
setAllowRunningInParallel
in interface RunConfiguration
public void onNewConfigurationCreated()
onNewConfigurationCreated
in interface ConfigurationCreationListener
public void onConfigurationCopied()
onConfigurationCopied
in interface ConfigurationCreationListener