View...Features Settings... not disabled when there are no features.
Involves an anonymous subclassing of JMenu for viewMenu that checks that
there are features just before opening.
GAlignFrame, with a call into AlignFrame for checking the viewport.
public void setPopupMenuVisible(boolean b) {
if (b) {
- System.out.println("openFeatureSettings " + haveAlignmentFeatures());
openFeatureSettings.setEnabled(haveAlignmentFeatures());
}
super.setPopupMenuVisible(b);