From: amwaterhouse Date: Tue, 15 Aug 2006 12:36:11 +0000 (+0000) Subject: Sequences can be added as parameter X-Git-Tag: Release_2_1~52 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=16c8c9d35fd5aa1c33afbcf778564e766e72e02a;p=jalview.git Sequences can be added as parameter --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index 10efeeb..f1464b6 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -88,6 +88,20 @@ public class JalviewLite extends Applet file = getParameter("file"); + if(file==null) + { + //Maybe the sequences are added as parameters + StringBuffer data = new StringBuffer("PASTE"); + int i=1; + while( (file=getParameter("sequence"+i))!=null) + { + data.append(file.toString()+"\n"); + i++; + } + if(data.length()>5) + file = data.toString(); + } + final JalviewLite applet = this; if(getParameter("embedded")!=null && getParameter("embedded").equalsIgnoreCase("true")) @@ -261,7 +275,11 @@ public class JalviewLite extends Applet JalviewLite _applet) { file = _file; - if(inArchive(file)) + if(file.startsWith("PASTE")) + { + protocol = AppletFormatAdapter.PASTE; + } + else if(inArchive(file)) protocol = AppletFormatAdapter.CLASSLOADER; else {