commit | 88a4cc8ffe5ac628c21a19a9b58d3e54111b3a7b | [log] [tgz] |
---|---|---|
author | apanchenk <apanchenk> | Wed Sep 03 08:51:16 2008 +0000 |
committer | apanchenk <apanchenk> | Wed Sep 03 08:51:16 2008 +0000 |
tree | ade32110510c6e533ff50450acf6a69443689f7c | |
parent | 9190ca3537bcdef408535ccc7f657106b78e0ca2 [diff] |
call canRerun() with test case - so we don't display not working actions
diff --git a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/ui/TestViewer.java b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/ui/TestViewer.java index 4d17fb7..34750be 100755 --- a/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/ui/TestViewer.java +++ b/core/plugins/org.eclipse.dltk.testing/src/org/eclipse/dltk/internal/testing/ui/TestViewer.java
@@ -242,7 +242,8 @@ DLTKTestingMessages.RerunAction_label_rerun, fTestRunnerPart, testElement, ILaunchManager.RUN_MODE)); - } else { + } else if (fTestRunSession.getTestRunnerUI().canRerun( + testElement)) { manager.add(new RerunAction( DLTKTestingMessages.RerunAction_label_run, fTestRunnerPart, testElement,