本文整理汇总了Java中com.intellij.execution.runners.RunConfigurationWithSuppressedDefaultRunAction类的典型用法代码示例。如果您正苦于以下问题:Java RunConfigurationWithSuppressedDefaultRunAction类的具体用法?Java RunConfigurationWithSuppressedDefaultRunAction怎么用?Java RunConfigurationWithSuppressedDefaultRunAction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
RunConfigurationWithSuppressedDefaultRunAction类属于com.intellij.execution.runners包,在下文中一共展示了RunConfigurationWithSuppressedDefaultRunAction类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: canRun
import com.intellij.execution.runners.RunConfigurationWithSuppressedDefaultRunAction; //导入依赖的package包/类
public boolean canRun(@NotNull final String executorId, @NotNull final RunProfile profile) {
try {
return executorId.equals(CoverageExecutor.EXECUTOR_ID) &&
//profile instanceof ModuleBasedConfiguration &&
!(profile instanceof RunConfigurationWithSuppressedDefaultRunAction) &&
profile instanceof RunConfigurationBase &&
Extensions.findExtension(CoverageEngine.EP_NAME, JavaCoverageEngine.class).isApplicableTo((RunConfigurationBase)profile);
}
catch (Exception e) {
return false;
}
}
示例2: canRun
import com.intellij.execution.runners.RunConfigurationWithSuppressedDefaultRunAction; //导入依赖的package包/类
public boolean canRun(@NotNull final String executorId, @NotNull final RunProfile profile) {
return executorId.equals(DynatraceExecutor.ID) &&
!(profile instanceof RunConfigurationWithSuppressedDefaultRunAction) &&
profile instanceof RunConfigurationBase;
}
开发者ID:Dynatrace,项目名称:Dynatrace-AppMon-IntelliJ-IDEA-Integration-Plugin,代码行数:6,代码来源:DynatraceRunner.java
示例3: canRun
import com.intellij.execution.runners.RunConfigurationWithSuppressedDefaultRunAction; //导入依赖的package包/类
@Override
public boolean canRun(@NotNull final String executorId, @NotNull final RunProfile profile)
{
return executorId.equals(DefaultRunExecutor.EXECUTOR_ID) && profile instanceof ModuleRunProfile && !(profile instanceof RunConfigurationWithSuppressedDefaultRunAction);
}