public class ConfigurationContext
extends java.lang.Object
RunConfigurationProducer
Modifier and Type | Field and Description |
---|---|
static Key<ConfigurationContext> |
SHARED_CONTEXT |
Constructor and Description |
---|
ConfigurationContext(PsiElement element) |
public static Key<ConfigurationContext> SHARED_CONTEXT
public ConfigurationContext(PsiElement element)
public static ConfigurationContext getFromContext(DataContext dataContext)
public static ConfigurationContext createEmptyContextForLocation(Location location)
public boolean containsMultipleSelection()
public RunnerAndConfigurationSettings getConfiguration()
public void setConfiguration(RunnerAndConfigurationSettings configuration)
@Deprecated public RunnerAndConfigurationSettings updateConfiguration(RuntimeConfigurationProducer producer)
public Location getLocation()
public PsiElement getPsiLocation()
public RunnerAndConfigurationSettings findExisting()
public RunManager getRunManager()
public Project getProject()
public Module getModule()
public DataContext getDataContext()
public RunConfiguration getOriginalConfiguration(ConfigurationType type)
RunConfiguration
from this context.
For example, it could be some test framework runtime configuration that had been launched
and that had brought a result test tree on which a right-click action was performed.type
- ConfigurationType
instance to filter original runtime configuration by its typeRunConfiguration
instance, it could be nullpublic boolean isCompatibleWithOriginalRunConfiguration(ConfigurationType type)
type
- ConfigurationType
instance to match the original run configuration@Deprecated public java.util.List<RuntimeConfigurationProducer> findPreferredProducers()
public java.util.List<ConfigurationFromContext> getConfigurationsFromContext()