當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。