summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Sawicki2011-08-09 16:16:28 (EDT)
committer Steffen Pingel2011-08-09 16:16:28 (EDT)
commit7e1e25824fd3388b15075196e2a66dd9272650be (patch)
treed006363ff450340894a52995e4a00ca4be88dc91
parentb2abc6a1dbeaf03fe3fe00fc1bc33c9b8777a744 (diff)
downloadorg.eclipse.mylyn.builds-7e1e25824fd3388b15075196e2a66dd9272650be.zip
org.eclipse.mylyn.builds-7e1e25824fd3388b15075196e2a66dd9272650be.tar.gz
org.eclipse.mylyn.builds-7e1e25824fd3388b15075196e2a66dd9272650be.tar.bz2
REOPENED - bug 350334: [patch] add preference for showing test failures
only https://bugs.eclipse.org/bugs/show_bug.cgi?id=350334
-rw-r--r--org.eclipse.mylyn.builds.ui/src/org/eclipse/mylyn/internal/builds/ui/editor/TestResultPart.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.builds.ui/src/org/eclipse/mylyn/internal/builds/ui/editor/TestResultPart.java b/org.eclipse.mylyn.builds.ui/src/org/eclipse/mylyn/internal/builds/ui/editor/TestResultPart.java
index 499e193..d19adc9 100644
--- a/org.eclipse.mylyn.builds.ui/src/org/eclipse/mylyn/internal/builds/ui/editor/TestResultPart.java
+++ b/org.eclipse.mylyn.builds.ui/src/org/eclipse/mylyn/internal/builds/ui/editor/TestResultPart.java
@@ -255,11 +255,16 @@ public class TestResultPart extends AbstractBuildEditorPart {
void refresh(ITestResult testResult) {
if (testResult != null) {
viewer.setInput(testResult);
- filterTestFailuresAction.setEnabled(testResult.getFailCount() > 0);
+ boolean hasFailures = testResult.getFailCount() > 0;
+ filterTestFailuresAction.setEnabled(hasFailures);
+ if (!hasFailures) {
+ filterTestFailuresAction.setChecked(false);
+ }
showTestResultsAction.setEnabled(true);
} else {
viewer.setInput("No test results generated.");
filterTestFailuresAction.setEnabled(false);
+ filterTestFailuresAction.setChecked(false);
showTestResultsAction.setEnabled(false);
}
}