public class ConfigurationFromContextWrapper extends ConfigurationFromContext
RuntimeConfigurationProducer in a ConfigurationFromContext.COMPARATOR, NAME_COMPARATOR| Constructor and Description |
|---|
ConfigurationFromContextWrapper(RuntimeConfigurationProducer producer) |
| Modifier and Type | Method and Description |
|---|---|
RunnerAndConfigurationSettings |
getConfigurationSettings()
Returns the created run configuration settings.
|
PsiElement |
getSourceElement()
Returns the element from which this configuration was created.
|
boolean |
isPreferredTo(ConfigurationFromContext other)
Checks if this configuration should be discarded in favor of another configuration created from the same context.
|
void |
onFirstRun(ConfigurationContext context,
java.lang.Runnable startRunnable)
Called before the configuration created from context is first executed.
|
void |
setConfigurationSettings(RunnerAndConfigurationSettings configurationSettings) |
boolean |
shouldReplace(ConfigurationFromContext other)
Checks if this configuration should replace another one, that is if the other should be discarded.
|
getAlternativeLocationDisplayName, getConfiguration, getConfigurationType, isFromAlternativeLocation, isProducedBy, setAlternativeLocationDisplayName, setFromAlternativeLocation, toStringpublic ConfigurationFromContextWrapper(RuntimeConfigurationProducer producer)
public void onFirstRun(ConfigurationContext context, java.lang.Runnable startRunnable)
ConfigurationFromContextonFirstRun in class ConfigurationFromContextcontext - the contextstartRunnable - the runnable that needs to be called after additional customization is complete.public RunnerAndConfigurationSettings getConfigurationSettings()
ConfigurationFromContextgetConfigurationSettings in class ConfigurationFromContextpublic void setConfigurationSettings(RunnerAndConfigurationSettings configurationSettings)
setConfigurationSettings in class ConfigurationFromContextpublic PsiElement getSourceElement()
ConfigurationFromContextgetSourceElement in class ConfigurationFromContextpublic boolean isPreferredTo(ConfigurationFromContext other)
ConfigurationFromContextisPreferredTo in class ConfigurationFromContextother - another configuration created from the same context.public boolean shouldReplace(ConfigurationFromContext other)
ConfigurationFromContextshouldReplace in class ConfigurationFromContextRunConfigurationProducer.shouldReplace(ConfigurationFromContext, ConfigurationFromContext)