From: amwaterhouse Date: Tue, 14 Dec 2004 11:23:07 +0000 (+0000) Subject: Copy, cut and move now done via popup menu X-Git-Tag: Release_2_0~834 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e7808af6c1cae45e7ef58cb40430dbf0a19086b5;p=jalview.git Copy, cut and move now done via popup menu --- diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 696ab75..a4ec5cc 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -28,9 +28,6 @@ public class GAlignFrame extends JInternalFrame protected JMenuItem selectAllSequenceMenuItem = new JMenuItem(); protected JMenuItem deselectAllSequenceMenuItem = new JMenuItem(); protected JMenuItem invertSequenceMenuItem = new JMenuItem(); - protected JMenuItem deleteSelectedMenuItem = new JMenuItem(); - protected JMenuItem moveSelectedMenuItem = new JMenuItem(); - protected JMenuItem copySelectedMenuItem = new JMenuItem(); protected JMenuItem deselectAllColumnsMenuItem = new JMenuItem(); protected JMenuItem remove2LeftMenuItem = new JMenuItem(); protected JMenuItem remove2RightMenuItem = new JMenuItem(); @@ -86,6 +83,7 @@ public class GAlignFrame extends JInternalFrame protected JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem(); JMenuItem findMenuItem = new JMenuItem(); JMenu searchMenu = new JMenu(); + protected JCheckBoxMenuItem modifyAlignmentMenuItem = new JCheckBoxMenuItem(); public GAlignFrame() { try @@ -200,30 +198,6 @@ public class GAlignFrame extends JInternalFrame invertSequenceMenuItem_actionPerformed(e); } }); - deleteSelectedMenuItem.setText("Delete selected sequences"); - deleteSelectedMenuItem.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(ActionEvent e) - { - deleteSelectedMenuItem_actionPerformed(e); - } - }); - moveSelectedMenuItem.setText("Move selected sequences to new alignment"); - moveSelectedMenuItem.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(ActionEvent e) - { - moveSelectedMenuItem_actionPerformed(e); - } - }); - copySelectedMenuItem.setText("Copy selected sequences to new alignment"); - copySelectedMenuItem.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(ActionEvent e) - { - copySelectedMenuItem_actionPerformed(e); - } - }); deselectAllColumnsMenuItem.setText("Deselect all columns"); deselectAllColumnsMenuItem.addActionListener(new java.awt.event.ActionListener() { @@ -648,6 +622,14 @@ public class GAlignFrame extends JInternalFrame } }); searchMenu.setText("Search"); + modifyAlignmentMenuItem.setText("Modify alignment"); + modifyAlignmentMenuItem.addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + modifyAlignmentMenuItem_actionPerformed(e); + } + }); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(searchMenu); @@ -665,6 +647,7 @@ public class GAlignFrame extends JInternalFrame editMenu.add(undoMenuItem); editMenu.add(redoMenuItem); editMenu.addSeparator(); + editMenu.add(modifyAlignmentMenuItem); editMenu.add(groupsMenuItem); editMenu.add(groupEditingMenuItem); editMenu.addSeparator(); @@ -672,10 +655,6 @@ public class GAlignFrame extends JInternalFrame editMenu.add(deselectAllSequenceMenuItem); editMenu.add(invertSequenceMenuItem); editMenu.addSeparator(); - editMenu.add(copySelectedMenuItem); - editMenu.add(moveSelectedMenuItem); - editMenu.add(deleteSelectedMenuItem); - editMenu.addSeparator(); editMenu.add(deselectAllColumnsMenuItem); editMenu.add(remove2LeftMenuItem); editMenu.add(remove2RightMenuItem); @@ -791,20 +770,6 @@ public class GAlignFrame extends JInternalFrame } - protected void deleteSelectedMenuItem_actionPerformed(ActionEvent e) - { - - } - - protected void moveSelectedMenuItem_actionPerformed(ActionEvent e) - { - - } - - protected void copySelectedMenuItem_actionPerformed(ActionEvent e) - { - - } protected void deselectAllColumnsMenuItem_actionPerformed(ActionEvent e) { @@ -1056,4 +1021,9 @@ public class GAlignFrame extends JInternalFrame } + protected void modifyAlignmentMenuItem_actionPerformed(ActionEvent e) + { + + } + }