本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
}
};
}
示例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);
}
示例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);
}
}