edit sequence name method
authoramwaterhouse <Andrew Waterhouse>
Thu, 10 Feb 2005 13:21:56 +0000 (13:21 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 10 Feb 2005 13:21:56 +0000 (13:21 +0000)
src/jalview/gui/PopupMenu.java

index 2bdaf37..a1007bb 100755 (executable)
@@ -111,10 +111,7 @@ public class PopupMenu extends JPopupMenu
 \r
 \r
     if(seq!=null)\r
-    {\r
       residueMenu.setVisible(false);\r
-      sequenceName.setText( sequence.getName() );\r
-    }\r
     else\r
       sequenceMenu.setVisible(false);\r
 \r
@@ -172,7 +169,7 @@ public class PopupMenu extends JPopupMenu
       }\r
     });\r
     sequenceMenu.setText("Sequence");\r
-    sequenceName.setText("sequenceName");\r
+    sequenceName.setText("Edit name");\r
     sequenceName.addActionListener(new java.awt.event.ActionListener()\r
     {\r
       public void actionPerformed(ActionEvent e)\r
@@ -587,7 +584,7 @@ public class PopupMenu extends JPopupMenu
     String s = (String)JOptionPane.showInternalInputDialog(\r
                 ap,\r
                 "Edit sequence name",\r
-                "Edit sequence name",\r
+                "Edit sequence name ("+sequence.getName()+")",\r
                 JOptionPane.PLAIN_MESSAGE,\r
                 null,\r
                 null,\r