From: jprocter Date: Fri, 21 Aug 2009 11:13:04 +0000 (+0000) Subject: prototype make groups from selection function X-Git-Tag: Release_2_5~204 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9d4857e06cfe5d96edb50bf702fffc58139b7aab;p=jalview.git prototype make groups from selection function --- diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 23062e3..04955e3 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -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)