JAL-1264 first cut of panel for annotation show/hide options
[jalview.git] / src / jalview / gui / AlignFrame.java
index e6b7af4..544a971 100644 (file)
@@ -4025,6 +4025,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
           tm.setText(title);//
           tm.addActionListener(new java.awt.event.ActionListener()
           {
+            @Override
             public void actionPerformed(ActionEvent e)
             {
               NewTreePanel(type, (String) pwtype, title);
@@ -5313,6 +5314,7 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     trimrs.setSelected(Cache.getDefault("TRIM_FETCHED_DATASET_SEQS", true));
     trimrs.addActionListener(new ActionListener()
     {
+      @Override
       public void actionPerformed(ActionEvent e)
       {
         trimrs.setSelected(trimrs.isSelected());
@@ -5703,6 +5705,16 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
       tabbedPane.setSelectedIndex(alignPanels.indexOf(alignmentPanel));
     }
   }
+
+  /**
+   * On menu option, open a panel to allow choice of annotation types to
+   * show/hide.
+   */
+  @Override
+  protected void chooseAnnotations_actionPerformed()
+  {
+    new AnnotationChooser(this.alignPanel);
+  }
 }
 
 class PrintThread extends Thread