From 2c7efe6527eab948c296b4e1b8aae3337c622ad9 Mon Sep 17 00:00:00 2001 From: janengelhardt Date: Thu, 29 Sep 2011 03:11:33 +0200 Subject: [PATCH] Sequence name in VARNA windows was not correct (always contained "consensus-"). The addition of the prefix is therefore moved from AppVarna to PopUpMenu. Change-Id: I7e0cd46bce9eee07726678742e5f8046f7f528af --- src/jalview/gui/AppVarna.java | 6 ++---- src/jalview/gui/PopupMenu.java | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/jalview/gui/AppVarna.java b/src/jalview/gui/AppVarna.java index ecc6cb6..fd9ef02 100644 --- a/src/jalview/gui/AppVarna.java +++ b/src/jalview/gui/AppVarna.java @@ -76,15 +76,13 @@ public class AppVarna extends JInternalFrame implements InterfaceVARNAListener,S } rnaList.add(trimRNA(rna1)); rnaList.add(rna1); - rna1.setName("consenus_"+rna1.getName()); + //rna1.setName("consensus_"+rna1.getName()); vab = new AppVarnaBinding(rnaList); - //vab = new AppVarnaBinding(seq,struc); - //System.out.println("Hallo: "+name); this.name=name; initVarna(); - ssm = ap.getStructureSelectionManager(); + ssm = ap.getStructureSelectionManager(); ssm.addStructureViewerListener(this); } diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index f2f41a3..22656b1 100644 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -279,7 +279,7 @@ public class PopupMenu extends JPopupMenu { public void actionPerformed(ActionEvent e) { - new AppVarna(seq.getSequenceAsString(), rnastruc, seq + new AppVarna(seq.getSequenceAsString(), rnastruc, "consensus_"+seq .getName(), ap); } }); -- 1.7.10.2