JAL-942 - sensible name on window
authorjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 5 Mar 2012 09:36:29 +0000 (10:36 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Mon, 5 Mar 2012 09:36:29 +0000 (10:36 +0100)
src/jalview/gui/AppVarna.java

index 27c28ad..da6c6e5 100644 (file)
@@ -89,7 +89,7 @@ public class AppVarna extends JInternalFrame implements
     {
       e3.printStackTrace();
     }
-    RNA trim = trimRNA(rna1);
+    RNA trim = trimRNA(rna1, "trimmed "+sname);
     rnaList.add(trim);
     rnaList.add(rna1);
     rnas.put(seq, rna1);
@@ -110,7 +110,7 @@ public class AppVarna extends JInternalFrame implements
     vab = new AppVarnaBinding(rnaList);
     // vab = new AppVarnaBinding(seq,struc);
     // System.out.println("Hallo: "+name);
-    this.name = name;
+    this.name = sname+" trimmed to "+name;
     initVarna();
     ssm = ap.getStructureSelectionManager();
     ssm.addStructureViewerListener(this);
@@ -145,10 +145,10 @@ public class AppVarna extends JInternalFrame implements
     return newStr;
   }
 
-  public RNA trimRNA(RNA rna)
+  public RNA trimRNA(RNA rna, String name)
   {
     ShiftList offset = new ShiftList();
-    RNA rnaTrim = new RNA("trim_" + rna.getName());
+    RNA rnaTrim = new RNA(name);
     try
     {
       rnaTrim.setRNA(rna.getSeq(), replaceOddGaps(rna.getStructDBN()));