use of com.intellij.execution.testframework.TestFrameworkPropertyListener in project intellij-community by JetBrains.
the class TestFrameworkActions method installFilterAction.
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);
}
Aggregations