From ce0eac6587e6cc8d62318b003d0dbb41d8252659 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 26 Oct 2006 12:19:46 +0000 Subject: [PATCH] void changeCase(ActionEvent e --- src/jalview/gui/PopupMenu.java | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) 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) -- 1.7.10.2