当前位置: 首页>>代码示例>>Java>>正文


Java CompileStepBeforeRunNoErrorCheck类代码示例

本文整理汇总了Java中com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck的典型用法代码示例。如果您正苦于以下问题:Java CompileStepBeforeRunNoErrorCheck类的具体用法?Java CompileStepBeforeRunNoErrorCheck怎么用?Java CompileStepBeforeRunNoErrorCheck使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


CompileStepBeforeRunNoErrorCheck类属于com.intellij.compiler.options包,在下文中一共展示了CompileStepBeforeRunNoErrorCheck类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ensureRunConfigurationExists

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
protected static void ensureRunConfigurationExists(Module module, ConfigurationType configurationType, String name) {
  final RunManager runManager = RunManager.getInstance(module.getProject());
  for (final RunConfiguration runConfiguration : runManager.getConfigurationsList(configurationType)) {
    if (runConfiguration instanceof MvcRunConfiguration && ((MvcRunConfiguration)runConfiguration).getModule() == module) {
      return;
    }
  }

  final ConfigurationFactory factory = configurationType.getConfigurationFactories()[0];
  final RunnerAndConfigurationSettings runSettings = runManager.createRunConfiguration(name,
                                                                                                                               factory);
  final MvcRunConfiguration configuration = (MvcRunConfiguration)runSettings.getConfiguration();
  configuration.setModule(module);
  runManager.addConfiguration(runSettings, false);
  runManager.setSelectedConfiguration(runSettings);

  RunManagerEx.disableTasks(module.getProject(), configuration, CompileStepBeforeRun.ID, CompileStepBeforeRunNoErrorCheck.ID);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:19,代码来源:MvcFramework.java

示例2: ensureRunConfigurationExists

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
protected static void ensureRunConfigurationExists(Module module, ConfigurationType configurationType, String name) {
  final RunManagerEx runManager = RunManagerEx.getInstanceEx(module.getProject());
  for (final RunConfiguration runConfiguration : runManager.getConfigurations(configurationType)) {
    if (runConfiguration instanceof MvcRunConfiguration && ((MvcRunConfiguration)runConfiguration).getModule() == module) {
      return;
    }
  }

  final ConfigurationFactory factory = configurationType.getConfigurationFactories()[0];
  final RunnerAndConfigurationSettings runSettings = runManager.createRunConfiguration(name,
                                                                                                                               factory);
  final MvcRunConfiguration configuration = (MvcRunConfiguration)runSettings.getConfiguration();
  configuration.setModule(module);
  runManager.addConfiguration(runSettings, false);
  runManager.setActiveConfiguration(runSettings);

  RunManagerEx.disableTasks(module.getProject(), configuration, CompileStepBeforeRun.ID, CompileStepBeforeRunNoErrorCheck.ID);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:19,代码来源:MvcFramework.java

示例3: tuneConfiguration

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
@Override
public void tuneConfiguration(@NotNull GroovyFile file, @NotNull GroovyScriptRunConfiguration configuration, Location location) {
  List<String> tasks = getTasksTarget(location);
  if (tasks != null) {
    String s = StringUtil.join(tasks, " ");
    configuration.setScriptParameters(s);
    configuration.setName("gradle:" + s);
  }
  RunManagerEx.disableTasks(file.getProject(), configuration, CompileStepBeforeRun.ID, CompileStepBeforeRunNoErrorCheck.ID);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:GradleScriptType.java

示例4: GriffonRunConfigurationType

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
public GriffonRunConfigurationType() {
  myConfigurationFactory = new ConfigurationFactory(this) {
    @Override
    public RunConfiguration createTemplateConfiguration(Project project) {
      return new GriffonRunConfiguration(this, project, GRIFFON_APPLICATION, "run-app");
    }

    @Override
    public void configureBeforeRunTaskDefaults(Key<? extends BeforeRunTask> providerID, BeforeRunTask task) {
      if (providerID == CompileStepBeforeRun.ID || providerID == CompileStepBeforeRunNoErrorCheck.ID) {
        task.setEnabled(false);
      }
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:16,代码来源:GriffonRunConfigurationType.java

示例5: tuneConfiguration

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
@Override
public void tuneConfiguration(@NotNull GroovyFile file, @NotNull GroovyScriptRunConfiguration configuration, Location location) {
  String target = getTargetName(location);
  if (target != null) {
    configuration.setScriptParameters(target);
    configuration.setName(configuration.getName() + "." + target);
  }
  RunManagerEx.disableTasks(file.getProject(), configuration, CompileStepBeforeRun.ID, CompileStepBeforeRunNoErrorCheck.ID);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:GantScriptType.java

示例6: configureBeforeRunTaskDefaults

import com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck; //导入依赖的package包/类
@Override
public void configureBeforeRunTaskDefaults(Key<? extends BeforeRunTask> providerID, BeforeRunTask task) {
    if (providerID == CompileStepBeforeRun.ID || providerID == CompileStepBeforeRunNoErrorCheck.ID) {
        task.setEnabled(false);
    }
}
 
开发者ID:shlxue,项目名称:MvnRunner,代码行数:7,代码来源:MvnRunConfigurationType.java


注:本文中的com.intellij.compiler.options.CompileStepBeforeRunNoErrorCheck类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。