From: amwaterhouse Date: Thu, 26 Oct 2006 12:19:46 +0000 (+0000) Subject: void changeCase(ActionEvent e X-Git-Tag: Release_2_2~213 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ce0eac6587e6cc8d62318b003d0dbb41d8252659;p=jalview.git void changeCase(ActionEvent e --- diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 7d08688..d099944 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -450,7 +450,7 @@ public class PopupMenu extends JPopupMenu { public void actionPerformed(ActionEvent e) { - upperCase_actionPerformed(e); + changeCase(e); } }); copy.setText("Copy"); @@ -466,7 +466,7 @@ public class PopupMenu extends JPopupMenu { public void actionPerformed(ActionEvent e) { - lowerCase_actionPerformed(e); + changeCase(e); } }); toggle.setText("Toggle Case"); @@ -474,7 +474,7 @@ public class PopupMenu extends JPopupMenu { public void actionPerformed(ActionEvent e) { - toggle_actionPerformed(e); + changeCase(e); } }); pdbMenu.setText("Associate Structure with Sequence"); @@ -521,12 +521,12 @@ public class PopupMenu extends JPopupMenu groupMenu.addSeparator(); groupMenu.add(groupName); groupMenu.add(unGroupMenuItem); - groupMenu.add(colourMenu); + groupMenu.add(colourMenu); groupMenu.add(showBoxes); - groupMenu.add(showText); - groupMenu.add(showColourText); + groupMenu.add(showText); + groupMenu.add(showColourText); groupMenu.add(outline); - sequenceMenu.add(sequenceName); + sequenceMenu.add(sequenceName); sequenceMenu.add(pdbMenu); colourMenu.add(noColourmenuItem); colourMenu.add(clustalColour); @@ -1174,23 +1174,9 @@ public class PopupMenu extends JPopupMenu ap.alignFrame.cut_actionPerformed(null); } - public void upperCase_actionPerformed(ActionEvent e) - { - changeCase(e.getSource()); - } - - public void lowerCase_actionPerformed(ActionEvent e) - { - changeCase(e.getSource()); - } - - public void toggle_actionPerformed(ActionEvent e) - { - changeCase(e.getSource()); - } - - void changeCase(Object source) + void changeCase(ActionEvent e) { + Object source = e.getSource(); SequenceGroup sg = ap.av.getSelectionGroup(); Vector regions = new Vector(); if (sg != null)