Java Code Examples for com.intellij.execution.configurations.RunConfigurationBase#getProject()

The following examples show how to use com.intellij.execution.configurations.RunConfigurationBase#getProject() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CoverageDataManagerImpl.java    From consulo with Apache License 2.0 5 votes vote down vote up
public static void processGatheredCoverage(RunConfigurationBase configuration) {
  final Project project = configuration.getProject();
  if (project.isDisposed()) return;
  final CoverageDataManager coverageDataManager = CoverageDataManager.getInstance(project);
  final CoverageEnabledConfiguration coverageEnabledConfiguration = CoverageEnabledConfiguration.getOrCreate(configuration);
  //noinspection ConstantConditions
  final CoverageSuite coverageSuite = coverageEnabledConfiguration.getCurrentCoverageSuite();
  if (coverageSuite != null) {
    ((BaseCoverageSuite)coverageSuite).setConfiguration(configuration);
    coverageDataManager.coverageGathered(coverageSuite);
  }
}
 
Example 2
Source File: DeployableJarRunConfigurationProducer.java    From intellij with Apache License 2.0 4 votes vote down vote up
private void setDeployableJarGeneratorTask(RunConfigurationBase config) {
  Project project = config.getProject();
  RunManagerEx runManager = RunManagerEx.getInstanceEx(project);
  runManager.setBeforeRunTasks(
      config, ImmutableList.of(new GenerateDeployableJarTaskProvider.Task()));
}
 
Example 3
Source File: CoverageEnabledConfiguration.java    From consulo with Apache License 2.0 4 votes vote down vote up
public CoverageEnabledConfiguration(RunConfigurationBase configuration) {
  myConfiguration = configuration;
  myProject = configuration.getProject();
}