Correct title for sequence parameter applets
authoramwaterhouse <Andrew Waterhouse>
Tue, 15 Aug 2006 12:47:04 +0000 (12:47 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 15 Aug 2006 12:47:04 +0000 (12:47 +0000)
src/jalview/bin/JalviewLite.java

index f1464b6..081efa6 100755 (executable)
@@ -277,6 +277,7 @@ public class JalviewLite extends Applet
             file = _file;\r
             if(file.startsWith("PASTE"))\r
             {\r
+              file = file.substring(5);\r
               protocol = AppletFormatAdapter.PASTE;\r
             }\r
             else if(inArchive(file))\r
@@ -307,6 +308,8 @@ public class JalviewLite extends Applet
                                                  file,\r
                                                  embedded);\r
 \r
+              if(protocol==jalview.io.AppletFormatAdapter.PASTE)\r
+                currentAlignFrame.setTitle("Sequences from "+getDocumentBase());\r
 \r
               initialAlignFrame = currentAlignFrame;\r
 \r