本文整理匯總了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);
}
}