[BLUEJ-673] Show Source button enabled in Test Results when no results
The Show Source button should be disabled if there's nothing to show the source for.
Note: the button is disabled if you show the window by clicking the "Run tests" button in BlueJ (even when you have no tests). But the button is enabled if you show it first time by using the View->Show Test Results menu item.
Possibly related exception (fix as well, even if not):
Exception in thread "JavaFX Application Thread" java.lang.NullPointerException at bluej.testmgr.TestDisplayFrame.selected(TestDisplayFrame.java:382) at bluej.utility.javafx.JavaFXUtil.lambda$addChangeListener$21(JavaFXUtil.java:1201)
I think this is caused by having no selection, which can occur when you show the window without test results.
Issue metadata
- Issue type: Sub-task
- Priority: Medium
- Parent issue: [BLUEJ-665] Fix 4.0.0-preview-rc3 issues
- Fix versions: 4.0.0preview