Sequence name in VARNA windows was not correct (always contained
authorjanengelhardt <engelhardt87@googlemail.com>
Thu, 29 Sep 2011 01:11:33 +0000 (03:11 +0200)
committerjanengelhardt <engelhardt87@googlemail.com>
Thu, 29 Sep 2011 01:11:33 +0000 (03:11 +0200)
"consensus-"). The addition of the prefix is therefore moved from
AppVarna to PopUpMenu.

Change-Id: I7e0cd46bce9eee07726678742e5f8046f7f528af

src/jalview/gui/AppVarna.java
src/jalview/gui/PopupMenu.java

index ecc6cb6..fd9ef02 100644 (file)
@@ -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);
   }
   
index f2f41a3..22656b1 100644 (file)
@@ -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);
               }
             });