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,