本文整理汇总了Java中com.intellij.execution.testframework.TestFrameworkPropertyListener类的典型用法代码示例。如果您正苦于以下问题:Java TestFrameworkPropertyListener类的具体用法?Java TestFrameworkPropertyListener怎么用?Java TestFrameworkPropertyListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TestFrameworkPropertyListener类属于com.intellij.execution.testframework包,在下文中一共展示了TestFrameworkPropertyListener类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addPropertyListener
import com.intellij.execution.testframework.TestFrameworkPropertyListener; //导入依赖的package包/类
public static void addPropertyListener(final AbstractProperty<Boolean> property,
final TestFrameworkPropertyListener<Boolean> propertyListener,
final TestFrameworkRunningModel model,
final boolean sendValue) {
final TestConsoleProperties properties = model.getProperties();
if (sendValue) {
properties.addListenerAndSendValue(property, propertyListener);
}
else {
properties.addListener(property, propertyListener);
}
Disposer.register(model, new Disposable() {
public void dispose() {
properties.removeListener(property, propertyListener);
}
});
}
示例2: installFilterAction
import com.intellij.execution.testframework.TestFrameworkPropertyListener; //导入依赖的package包/类
public static void installFilterAction(final TestFrameworkRunningModel model) {
final TestConsoleProperties properties = model.getProperties();
final TestFrameworkPropertyListener<Boolean> propertyListener = new TestFrameworkPropertyListener<Boolean>() {
public void onChanged(final Boolean value) {
model.setFilter(getFilter(properties));
}
};
addPropertyListener(TestConsoleProperties.HIDE_PASSED_TESTS, propertyListener, model, true);
addPropertyListener(TestConsoleProperties.HIDE_IGNORED_TEST, propertyListener, model, true);
addPropertyListener(TestConsoleProperties.HIDE_SUCCESSFUL_CONFIG, propertyListener, model, true);
}