rebuild sort by scores menu when new annotation is available
authorjprocter <Jim Procter>
Mon, 30 Apr 2007 13:50:33 +0000 (13:50 +0000)
committerjprocter <Jim Procter>
Mon, 30 Apr 2007 13:50:33 +0000 (13:50 +0000)
src/jalview/gui/AlignFrame.java

index 61c6672..b27a98e 100755 (executable)
@@ -142,7 +142,7 @@ public class AlignFrame
    }
 
    setMenusFromViewport(viewport);
-
+   buildSortByAnnotationScoresMenu();
    if (viewport.wrapAlignment)
    {
      wrapMenuItem_actionPerformed(null);
@@ -1592,6 +1592,7 @@ public class AlignFrame
        if (annotationAdded)
        {
          alignPanel.annotationPanel.adjustPanelHeight();
+         buildSortByAnnotationScoresMenu();
        }
        viewport.firePropertyChange("alignment", null, alignment.getSequences());
      } else {
@@ -3674,6 +3675,7 @@ public void drop(DropTargetDropEvent evt)
       {
         // (isAnnotation)
         alignPanel.adjustAnnotationHeight();
+        buildSortByAnnotationScoresMenu();
       }
 
     }