From dfb0a0fc461353af5800d46078816f5d43720edc Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 10 Feb 2005 13:21:56 +0000 Subject: [PATCH] edit sequence name method --- src/jalview/gui/PopupMenu.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 2bdaf37..a1007bb 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -111,10 +111,7 @@ public class PopupMenu extends JPopupMenu if(seq!=null) - { residueMenu.setVisible(false); - sequenceName.setText( sequence.getName() ); - } else sequenceMenu.setVisible(false); @@ -172,7 +169,7 @@ public class PopupMenu extends JPopupMenu } }); sequenceMenu.setText("Sequence"); - sequenceName.setText("sequenceName"); + sequenceName.setText("Edit name"); sequenceName.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) @@ -587,7 +584,7 @@ public class PopupMenu extends JPopupMenu String s = (String)JOptionPane.showInternalInputDialog( ap, "Edit sequence name", - "Edit sequence name", + "Edit sequence name ("+sequence.getName()+")", JOptionPane.PLAIN_MESSAGE, null, null, -- 1.7.10.2