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


Java ConfigurationFromContext.isProducedBy方法代码示例

本文整理汇总了Java中com.intellij.execution.actions.ConfigurationFromContext.isProducedBy方法的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationFromContext.isProducedBy方法的具体用法?Java ConfigurationFromContext.isProducedBy怎么用?Java ConfigurationFromContext.isProducedBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.execution.actions.ConfigurationFromContext的用法示例。


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

示例1: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  final RunConfiguration configuration = self.getConfiguration();
  if (configuration instanceof PythonUnitTestRunConfiguration &&
      ((PythonUnitTestRunConfiguration)configuration).getTestType() == AbstractPythonTestRunConfiguration.TestType.TEST_FOLDER) {
    return true;
  }
  return other.isProducedBy(PythonTestConfigurationProducer.class) || other.isProducedBy(PythonRunConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:PythonTestConfigurationProducer.java

示例2: shouldReplace

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other) {
  return other.isProducedBy(ApplicationConfigurationProducer.class) && !other.isProducedBy(JavaScratchConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JavaScratchConfigurationProducer.java

示例3: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  return other.isProducedBy(PythonRunConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PythonRunConfigurationProducer.java

示例4: shouldReplace

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other) {
  // If we decided the context is for an instrumentation test (see {@link #setupConfigurationFromContext}), it should replace
  // other test configurations, as they won't work anyway.
  return other.isProducedBy(JUnitConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:AndroidTestConfigurationProducer.java

示例5: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  return !other.isProducedBy(AbstractAllInDirectoryConfigurationProducer.class) && !other.isProducedBy(PatternConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:AbstractAllInPackageConfigurationProducer.java

示例6: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  return !other.isProducedBy(AbstractTestMethodConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:JUnitConfigurationProducer.java

示例7: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  return !other.isProducedBy(TestMethodConfigurationProducer.class);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PatternConfigurationProducer.java

示例8: shouldReplace

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean shouldReplace(ConfigurationFromContext self, ConfigurationFromContext other) {
  return Blaze.isBlazeProject(self.getConfiguration().getProject())
      && !other.isProducedBy(BlazeRunConfigurationProducer.class);
}
 
开发者ID:bazelbuild,项目名称:intellij,代码行数:6,代码来源:BlazeRunConfigurationProducer.java

示例9: isPreferredConfiguration

import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
  return !other.isProducedBy(AllInDirectoryConfigurationProducer.class);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:5,代码来源:AllInPackageConfigurationProducer.java


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