public abstract class CompatibleRunConfigurationProducer<T extends RunConfiguration> extends RunConfigurationProducer<T>
EP_NAME| Modifier | Constructor and Description |
|---|---|
protected |
CompatibleRunConfigurationProducer() |
protected |
CompatibleRunConfigurationProducer(ConfigurationType configurationType)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
isConfigurationFromCompatibleContext(T configuration,
ConfigurationContext context) |
boolean |
isConfigurationFromContext(T configuration,
ConfigurationContext context)
Checks if the specified configuration was created from the specified context.
|
protected boolean |
isContextCompatible(ConfigurationContext context) |
protected abstract boolean |
setupConfigurationFromCompatibleContext(T configuration,
ConfigurationContext context,
Ref<PsiElement> sourceElement) |
protected boolean |
setupConfigurationFromContext(T configuration,
ConfigurationContext context,
Ref<PsiElement> sourceElement)
Sets up a configuration based on the specified context.
|
cloneTemplateConfiguration, cloneTemplateConfigurationStatic, createConfigurationFromContext, createLightConfiguration, findExistingConfiguration, findOrCreateConfigurationFromContext, getConfigurationFactory, getConfigurationSettingsList, getConfigurationType, getInstance, getProducers, isPreferredConfiguration, onFirstRun, shouldReplace@Deprecated protected CompatibleRunConfigurationProducer(ConfigurationType configurationType)
RunConfigurationProducer.getConfigurationFactory().protected CompatibleRunConfigurationProducer()
protected boolean setupConfigurationFromContext(T configuration, ConfigurationContext context, Ref<PsiElement> sourceElement)
RunConfigurationProducersetupConfigurationFromContext in class RunConfigurationProducer<T extends RunConfiguration>configuration - a clone of the template run configuration of the specified typecontext - contains the information about a location in the source code.sourceElement - a reference to the source element for the run configuration (by default contains the element at caret,
can be updated by the producer to point to a higher-level element in the tree).protected abstract boolean setupConfigurationFromCompatibleContext(T configuration, ConfigurationContext context, Ref<PsiElement> sourceElement)
public final boolean isConfigurationFromContext(T configuration, ConfigurationContext context)
RunConfigurationProducerisConfigurationFromContext in class RunConfigurationProducer<T extends RunConfiguration>configuration - a configuration instance.context - contains the information about a location in the source code.protected abstract boolean isConfigurationFromCompatibleContext(T configuration, ConfigurationContext context)
protected boolean isContextCompatible(ConfigurationContext context)