From: amwaterhouse Date: Mon, 1 May 2006 14:28:32 +0000 (+0000) Subject: Change name to editMenu X-Git-Tag: Release_2_08_1~11 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f744d455e1b6bae50524152edf2fe8c78a8dffab;p=jalview.git Change name to editMenu --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 968262b..55aea5e 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -68,7 +68,7 @@ public class PopupMenu extends JPopupMenu JCheckBoxMenuItem showBoxes = new JCheckBoxMenuItem(); JCheckBoxMenuItem showText = new JCheckBoxMenuItem(); JCheckBoxMenuItem showColourText = new JCheckBoxMenuItem(); - JMenu jMenu1 = new JMenu(); + JMenu editMenu = new JMenu(); JMenuItem cut = new JMenuItem(); JMenuItem copy = new JMenuItem(); JMenuItem upperCase = new JMenuItem(); @@ -233,7 +233,10 @@ public class PopupMenu extends JPopupMenu showBoxes.setSelected(sg.getDisplayBoxes()); } else + { groupMenu.setVisible(false); + editMenu.setVisible(false); + } if (!ap.av.alignment.getGroups().contains(sg)) { @@ -362,7 +365,7 @@ public class PopupMenu extends JPopupMenu showColourText_actionPerformed(e); } }); - jMenu1.setText("Edit"); + editMenu.setText("Edit"); cut.setText("Cut"); cut.addActionListener(new ActionListener() { @@ -397,7 +400,7 @@ public class PopupMenu extends JPopupMenu }); add(groupMenu); add(sequenceMenu); - this.add(jMenu1); + this.add(editMenu); groupMenu.add(groupName); groupMenu.addSeparator(); groupMenu.add(unGroupMenuItem); @@ -447,10 +450,10 @@ public class PopupMenu extends JPopupMenu colourMenu.addSeparator(); colourMenu.add(abovePIDColour); colourMenu.add(conservationMenuItem); - jMenu1.add(copy); - jMenu1.add(cut); - jMenu1.add(upperCase); - jMenu1.add(lowerCase); + editMenu.add(copy); + editMenu.add(cut); + editMenu.add(upperCase); + editMenu.add(lowerCase); noColourmenuItem.setText("None"); noColourmenuItem.addActionListener(new java.awt.event.ActionListener() {