JAL-3026 Java+JavaScript fix for GD#95
authorhansonr <hansonr@stolaf.edu>
Mon, 2 Jul 2018 16:55:41 +0000 (17:55 +0100)
committerhansonr <hansonr@stolaf.edu>
Mon, 2 Jul 2018 16:55:41 +0000 (17:55 +0100)
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.

src/jalview/jbgui/GAlignFrame.java

index 9fdc47c..7a85a4a 100755 (executable)
@@ -288,7 +288,6 @@ public class GAlignFrame extends JInternalFrame
       
       public void setPopupMenuVisible(boolean b) {
         if (b) {
-          System.out.println("openFeatureSettings " + haveAlignmentFeatures());
           openFeatureSettings.setEnabled(haveAlignmentFeatures());
         }
         super.setPopupMenuVisible(b);