void changeCase(ActionEvent e
authoramwaterhouse <Andrew Waterhouse>
Thu, 26 Oct 2006 12:19:46 +0000 (12:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 26 Oct 2006 12:19:46 +0000 (12:19 +0000)
src/jalview/gui/PopupMenu.java

index 7d08688..d099944 100755 (executable)
@@ -450,7 +450,7 @@ public class PopupMenu extends JPopupMenu
     {\r
       public void actionPerformed(ActionEvent e)\r
       {\r
-        upperCase_actionPerformed(e);\r
+        changeCase(e);\r
       }\r
     });\r
     copy.setText("Copy");\r
@@ -466,7 +466,7 @@ public class PopupMenu extends JPopupMenu
     {\r
       public void actionPerformed(ActionEvent e)\r
       {\r
-        lowerCase_actionPerformed(e);\r
+        changeCase(e);\r
       }\r
     });\r
     toggle.setText("Toggle Case");\r
@@ -474,7 +474,7 @@ public class PopupMenu extends JPopupMenu
     {\r
       public void actionPerformed(ActionEvent e)\r
       {\r
-        toggle_actionPerformed(e);\r
+        changeCase(e);\r
       }\r
     });\r
     pdbMenu.setText("Associate Structure with Sequence");\r
@@ -521,12 +521,12 @@ public class PopupMenu extends JPopupMenu
     groupMenu.addSeparator();\r
     groupMenu.add(groupName);\r
     groupMenu.add(unGroupMenuItem);\r
-        groupMenu.add(colourMenu);\r
+    groupMenu.add(colourMenu);\r
     groupMenu.add(showBoxes);\r
-        groupMenu.add(showText);\r
-        groupMenu.add(showColourText);\r
+    groupMenu.add(showText);\r
+    groupMenu.add(showColourText);\r
     groupMenu.add(outline);\r
-        sequenceMenu.add(sequenceName);\r
+    sequenceMenu.add(sequenceName);\r
     sequenceMenu.add(pdbMenu);\r
     colourMenu.add(noColourmenuItem);\r
         colourMenu.add(clustalColour);\r
@@ -1174,23 +1174,9 @@ public class PopupMenu extends JPopupMenu
     ap.alignFrame.cut_actionPerformed(null);\r
   }\r
 \r
-  public void upperCase_actionPerformed(ActionEvent e)\r
-  {\r
-    changeCase(e.getSource());\r
-  }\r
-\r
-  public void lowerCase_actionPerformed(ActionEvent e)\r
-  {\r
-    changeCase(e.getSource());\r
-  }\r
-\r
-  public void toggle_actionPerformed(ActionEvent e)\r
-  {\r
-    changeCase(e.getSource());\r
-  }\r
-\r
-  void changeCase(Object source)\r
+  void changeCase(ActionEvent e)\r
   {\r
+    Object source = e.getSource();\r
     SequenceGroup sg = ap.av.getSelectionGroup();\r
     Vector regions = new Vector();\r
     if (sg != null)\r