prototype make groups from selection function
authorjprocter <Jim Procter>
Fri, 21 Aug 2009 11:13:04 +0000 (11:13 +0000)
committerjprocter <Jim Procter>
Fri, 21 Aug 2009 11:13:04 +0000 (11:13 +0000)
src/jalview/jbgui/GAlignFrame.java

index 23062e3..04955e3 100755 (executable)
@@ -287,7 +287,8 @@ public class GAlignFrame extends JInternalFrame
   
   protected JCheckBoxMenuItem showGroupConsensus=new JCheckBoxMenuItem();
   protected JCheckBoxMenuItem showGroupConservation=new JCheckBoxMenuItem();
-  
+
+  private JMenuItem grpsFromSelection = new JMenuItem();
   public GAlignFrame()
   {
     try
@@ -543,6 +544,15 @@ public class GAlignFrame extends JInternalFrame
                 invertSequenceMenuItem_actionPerformed(e);
               }
             });
+    grpsFromSelection.setText("Make Groups for selection");
+    grpsFromSelection.addActionListener(new java.awt.event.ActionListener()
+    {
+      public void actionPerformed(ActionEvent e)
+      {
+        makeGrpsFromSelection_actionPerformed(e);
+      }      
+    });
+
     remove2LeftMenuItem.setText("Remove Left");
     remove2LeftMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
             java.awt.event.KeyEvent.VK_L, Toolkit.getDefaultToolkit()
@@ -1697,6 +1707,13 @@ public class GAlignFrame extends JInternalFrame
     selectMenu.add(invertSequenceMenuItem);
     selectMenu.add(invertColSel);
     selectMenu.add(deleteGroups);
+    selectMenu.add(grpsFromSelection);
+  }
+
+  protected void makeGrpsFromSelection_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+    
   }
 
   protected void showGroupConsensus_actionPerformed(ActionEvent e)