Copy, cut and move now done via popup menu
authoramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 11:23:07 +0000 (11:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 14 Dec 2004 11:23:07 +0000 (11:23 +0000)
src/jalview/jbgui/GAlignFrame.java

index 696ab75..a4ec5cc 100755 (executable)
@@ -28,9 +28,6 @@ public class GAlignFrame extends JInternalFrame
   protected JMenuItem selectAllSequenceMenuItem = new JMenuItem();\r
   protected JMenuItem deselectAllSequenceMenuItem = new JMenuItem();\r
   protected JMenuItem invertSequenceMenuItem = new JMenuItem();\r
-  protected JMenuItem deleteSelectedMenuItem = new JMenuItem();\r
-  protected JMenuItem moveSelectedMenuItem = new JMenuItem();\r
-  protected JMenuItem copySelectedMenuItem = new JMenuItem();\r
   protected JMenuItem deselectAllColumnsMenuItem = new JMenuItem();\r
   protected JMenuItem remove2LeftMenuItem = new JMenuItem();\r
   protected JMenuItem remove2RightMenuItem = new JMenuItem();\r
@@ -86,6 +83,7 @@ public class GAlignFrame extends JInternalFrame
   protected JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem();\r
   JMenuItem findMenuItem = new JMenuItem();\r
   JMenu searchMenu = new JMenu();\r
+  protected JCheckBoxMenuItem modifyAlignmentMenuItem = new JCheckBoxMenuItem();\r
   public GAlignFrame()\r
   {\r
     try\r
@@ -200,30 +198,6 @@ public class GAlignFrame extends JInternalFrame
         invertSequenceMenuItem_actionPerformed(e);\r
       }\r
     });\r
-    deleteSelectedMenuItem.setText("Delete selected sequences");\r
-    deleteSelectedMenuItem.addActionListener(new java.awt.event.ActionListener()\r
-    {\r
-      public void actionPerformed(ActionEvent e)\r
-      {\r
-        deleteSelectedMenuItem_actionPerformed(e);\r
-      }\r
-    });\r
-    moveSelectedMenuItem.setText("Move selected sequences to new alignment");\r
-    moveSelectedMenuItem.addActionListener(new java.awt.event.ActionListener()\r
-    {\r
-      public void actionPerformed(ActionEvent e)\r
-      {\r
-        moveSelectedMenuItem_actionPerformed(e);\r
-      }\r
-    });\r
-    copySelectedMenuItem.setText("Copy selected sequences to new alignment");\r
-    copySelectedMenuItem.addActionListener(new java.awt.event.ActionListener()\r
-    {\r
-      public void actionPerformed(ActionEvent e)\r
-      {\r
-        copySelectedMenuItem_actionPerformed(e);\r
-      }\r
-    });\r
     deselectAllColumnsMenuItem.setText("Deselect all columns");\r
     deselectAllColumnsMenuItem.addActionListener(new java.awt.event.ActionListener()\r
     {\r
@@ -648,6 +622,14 @@ public class GAlignFrame extends JInternalFrame
       }\r
     });\r
     searchMenu.setText("Search");\r
+    modifyAlignmentMenuItem.setText("Modify alignment");\r
+    modifyAlignmentMenuItem.addActionListener(new java.awt.event.ActionListener()\r
+    {\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        modifyAlignmentMenuItem_actionPerformed(e);\r
+      }\r
+    });\r
     alignFrameMenuBar.add(fileMenu);\r
     alignFrameMenuBar.add(editMenu);\r
     alignFrameMenuBar.add(searchMenu);\r
@@ -665,6 +647,7 @@ public class GAlignFrame extends JInternalFrame
     editMenu.add(undoMenuItem);\r
     editMenu.add(redoMenuItem);\r
     editMenu.addSeparator();\r
+    editMenu.add(modifyAlignmentMenuItem);\r
     editMenu.add(groupsMenuItem);\r
     editMenu.add(groupEditingMenuItem);\r
     editMenu.addSeparator();\r
@@ -672,10 +655,6 @@ public class GAlignFrame extends JInternalFrame
     editMenu.add(deselectAllSequenceMenuItem);\r
     editMenu.add(invertSequenceMenuItem);\r
     editMenu.addSeparator();\r
-    editMenu.add(copySelectedMenuItem);\r
-    editMenu.add(moveSelectedMenuItem);\r
-    editMenu.add(deleteSelectedMenuItem);\r
-    editMenu.addSeparator();\r
     editMenu.add(deselectAllColumnsMenuItem);\r
     editMenu.add(remove2LeftMenuItem);\r
     editMenu.add(remove2RightMenuItem);\r
@@ -791,20 +770,6 @@ public class GAlignFrame extends JInternalFrame
 \r
   }\r
 \r
-  protected void deleteSelectedMenuItem_actionPerformed(ActionEvent e)\r
-  {\r
-\r
-  }\r
-\r
-  protected void moveSelectedMenuItem_actionPerformed(ActionEvent e)\r
-  {\r
-\r
-  }\r
-\r
-  protected void copySelectedMenuItem_actionPerformed(ActionEvent e)\r
-  {\r
-\r
-  }\r
 \r
   protected void deselectAllColumnsMenuItem_actionPerformed(ActionEvent e)\r
   {\r
@@ -1056,4 +1021,9 @@ public class GAlignFrame extends JInternalFrame
 \r
   }\r
 \r
+  protected void modifyAlignmentMenuItem_actionPerformed(ActionEvent e)\r
+  {\r
+\r
+  }\r
+\r
 }\r