本文整理汇总了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);
}
示例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);
}
示例3: isPreferredConfiguration
import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
return other.isProducedBy(PythonRunConfigurationProducer.class);
}
示例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);
}
示例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);
}
示例7: isPreferredConfiguration
import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
return !other.isProducedBy(TestMethodConfigurationProducer.class);
}
示例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);
}
示例9: isPreferredConfiguration
import com.intellij.execution.actions.ConfigurationFromContext; //导入方法依赖的package包/类
@Override
public boolean isPreferredConfiguration(ConfigurationFromContext self, ConfigurationFromContext other) {
return !other.isProducedBy(AllInDirectoryConfigurationProducer.class);
}