public class JavaScratchConfiguration extends ApplicationConfiguration
ApplicationConfiguration.JavaApplicationCommandLineState<T extends ApplicationConfiguration>InputRedirectAware.InputRedirectOptions, InputRedirectAware.InputRedirectOptionsImplRunConfiguration.RestartSingletonResultALTERNATIVE_JRE_PATH, ALTERNATIVE_JRE_PATH_ENABLED, MAIN_CLASS_NAME, PROGRAM_PARAMETERS, WORKING_DIRECTORYTO_CLONE_ELEMENT_NAMETYPES_WITH_REDIRECT_AWARE_UIDATA_KEY| Modifier | Constructor and Description |
|---|---|
protected |
JavaScratchConfiguration(java.lang.String name,
Project project,
ConfigurationFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkConfiguration()
Checks whether the run configuration settings are valid.
|
SettingsEditor<? extends RunConfiguration> |
getConfigurationEditor()
Returns the UI control for editing the run configuration settings.
|
protected JavaScratchConfigurationOptions |
getOptions()
Because we have to keep backward compatibility, never use `getOptions()` to get or set values - use only designated getters/setters.
|
java.lang.String |
getScratchFileUrl() |
VirtualFile |
getScratchVirtualFile() |
RunProfileState |
getState(Executor executor,
ExecutionEnvironment env)
Prepares for executing a specific instance of the run configuration.
|
boolean |
isBuildProjectOnEmptyModuleList()
Modifies behavior for the case when
RunProfileWithCompileBeforeLaunchOption.getModules() returns empty list. |
void |
setScratchFileUrl(java.lang.String url) |
canRunOn, getActionName, getAlternativeJrePath, getDefaultLanguageRuntimeType, getDefaultOptionsClass, getDefaultTargetName, getEnvs, getInputRedirectOptions, getMainClass, getMainClassName, getPackage, getProgramParameters, getRefactoringElementListener, getRunClass, getShortenCommandLine, getValidModules, getVMParameters, getWorkingDirectory, isAlternativeJrePathEnabled, isPassParentEnvs, isProvidedScopeIncluded, isSwingInspectorEnabled, onAlternativeJreChanged, readExternal, setAlternativeJrePath, setAlternativeJrePathEnabled, setDefaultTargetName, setEnvs, setIncludeProvidedScope, setMainClass, setMainClassName, setOptionsFromConfigurationFile, setPassParentEnvs, setProgramParameters, setShortenCommandLine, setSwingInspectorEnabled, setVMParameters, setWorkingDirectory, suggestedName, writeExternalcanRestoreOriginalModule, clone, createInstance, getAllModules, getConfigurationModule, getModules, getState, isModuleDirMacroSupported, loadState, onNewConfigurationCreated, readModule, restoreOriginalModule, setModule, setModuleName, syncModuleName, writeModuleisGeneratedName, setGeneratedName, setNameChangedByUseraddLogFile, addLogFile, addPredefinedLogFile, checkRunnerSettings, checkSettingsBeforeRun, collectOutputFromProcessHandler, createAdditionalTabComponents, customizeLogConsole, equals, excludeCompileBeforeLaunchOption, getAllLogFiles, getBeforeRunTasks, getFactory, getIcon, getLogFiles, getName, getOptionsClass, getOptionsForPredefinedLogFile, getOutputFilePath, getPredefinedLogFiles, getProject, hashCode, isAllowRunningInParallel, isNewSerializationUsed, isSaveOutputToFile, isShowConsoleOnStdErr, isShowConsoleOnStdOut, onConfigurationCopied, removeAllLogFiles, removeAllPredefinedLogFiles, setAllowRunningInParallel, setBeforeRunTasks, setFileOutputPath, setName, setSaveOutputToFile, setShowConsoleOnStdErr, setShowConsoleOnStdOut, toStringchangeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapfinalize, getClass, notify, notifyAll, wait, wait, waitgetProjectgetProjectgetInputFile, getInputRedirectOptionsclone, createRunnerSettings, getBeforeRunTasks, getFactory, getId, getPresentableType, getProject, getRunnerSettingsEditor, getType, getUniqueID, hideDisabledExecutorButtons, isAllowRunningInParallel, restartSingleton, setAllowRunningInParallel, setBeforeRunTasks, setNamegetIcon, getNamegetSearchScopeisBuildBeforeLaunchAddedByDefault, isExcludeCompileBeforeLaunchOptionprotected JavaScratchConfiguration(java.lang.String name,
Project project,
ConfigurationFactory factory)
public boolean isBuildProjectOnEmptyModuleList()
RunProfileWithCompileBeforeLaunchOptionRunProfileWithCompileBeforeLaunchOption.getModules() returns empty list.
By default whole project will be built in this case.public void checkConfiguration()
throws RuntimeConfigurationException
RunConfigurationcheckConfiguration in interface RunConfigurationcheckConfiguration in class ApplicationConfigurationRuntimeConfigurationException - if the configuration settings contain a non-fatal problem which the user should be warned about
but the execution should still be allowed.RuntimeConfigurationError - if the configuration settings contain a fatal problem which makes it impossible
to execute the run configuration.public RunProfileState getState(Executor executor, ExecutionEnvironment env) throws ExecutionException
RunProfilegetState in interface RunProfilegetState in class ApplicationConfigurationexecutor - the execution mode selected by the user (run, debug, profile etc.)env - the environment object containing additional settings for executing the configuration.ExecutionExceptionpublic SettingsEditor<? extends RunConfiguration> getConfigurationEditor()
RunConfigurationCheckableRunConfigurationEditor. The returned object
can also implement SettingsEditorGroup if the settings it provides need to be displayed in
multiple tabs.getConfigurationEditor in interface RunConfigurationgetConfigurationEditor in class ApplicationConfigurationpublic void setScratchFileUrl(java.lang.String url)
public java.lang.String getScratchFileUrl()
public VirtualFile getScratchVirtualFile()
protected JavaScratchConfigurationOptions getOptions()
ApplicationConfigurationgetOptions in class ApplicationConfiguration