public abstract class RunConfigurationExtension extends RunConfigurationExtensionBase<RunConfigurationBase<?>>
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<RunConfigurationExtension> |
EP_NAME |
Constructor and Description |
---|
RunConfigurationExtension() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanExtensionsUserData(RunConfigurationBase runConfigurationBase) |
void |
cleanUserData(RunConfigurationBase runConfigurationBase) |
boolean |
isEnabledFor(RunConfigurationBase applicableConfiguration,
RunnerSettings runnerSettings) |
boolean |
isListenerDisabled(RunConfigurationBase configuration,
java.lang.Object listener,
RunnerSettings runnerSettings) |
protected void |
patchCommandLine(RunConfigurationBase configuration,
RunnerSettings runnerSettings,
GeneralCommandLine cmdLine,
java.lang.String runnerId)
Patches the command line of the process about to be started by the underlying run configuration.
|
abstract <T extends RunConfigurationBase> |
updateJavaParameters(T configuration,
JavaParameters params,
RunnerSettings runnerSettings) |
<T extends RunConfigurationBase> |
updateJavaParameters(T configuration,
JavaParameters params,
RunnerSettings runnerSettings,
Executor executor) |
RefactoringElementListener |
wrapElementListener(PsiElement element,
RunConfigurationBase runJavaConfiguration,
RefactoringElementListener listener) |
static RefactoringElementListener |
wrapRefactoringElementListener(PsiElement element,
RunConfigurationBase runConfigurationBase,
RefactoringElementListener listener) |
attachToProcess, createEditor, extendCreatedConfiguration, extendTemplateConfiguration, getEditorTitle, getSerializationId, isApplicableFor, patchCommandLine, readExternal, validateConfiguration, writeExternal
public static final ExtensionPointName<RunConfigurationExtension> EP_NAME
public <T extends RunConfigurationBase> void updateJavaParameters(T configuration, JavaParameters params, RunnerSettings runnerSettings, Executor executor) throws ExecutionException
ExecutionException
public abstract <T extends RunConfigurationBase> void updateJavaParameters(T configuration, JavaParameters params, RunnerSettings runnerSettings) throws ExecutionException
ExecutionException
protected void patchCommandLine(RunConfigurationBase configuration, RunnerSettings runnerSettings, GeneralCommandLine cmdLine, java.lang.String runnerId) throws ExecutionException
RunConfigurationExtensionBase
patchCommandLine
in class RunConfigurationExtensionBase<RunConfigurationBase<?>>
configuration
- the underlying run configuration.runnerSettings
- the runner-specific settings.cmdLine
- the command line of the process about to be started.runnerId
- the ID of the ProgramRunner
used to start the process.ExecutionException
- if there was an error configuring the command line and the execution should be canceled.public boolean isEnabledFor(RunConfigurationBase applicableConfiguration, RunnerSettings runnerSettings)
isEnabledFor
in class RunConfigurationExtensionBase<RunConfigurationBase<?>>
applicableConfiguration
- Applicable run configurationpublic void cleanUserData(RunConfigurationBase runConfigurationBase)
public static void cleanExtensionsUserData(RunConfigurationBase runConfigurationBase)
public RefactoringElementListener wrapElementListener(PsiElement element, RunConfigurationBase runJavaConfiguration, RefactoringElementListener listener)
public static RefactoringElementListener wrapRefactoringElementListener(PsiElement element, RunConfigurationBase runConfigurationBase, RefactoringElementListener listener)
public boolean isListenerDisabled(RunConfigurationBase configuration, java.lang.Object listener, RunnerSettings runnerSettings)