Load pdb file with applet
authoramwaterhouse <Andrew Waterhouse>
Wed, 30 Nov 2005 18:13:46 +0000 (18:13 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 30 Nov 2005 18:13:46 +0000 (18:13 +0000)
src/jalview/bin/JalviewLite.java

index 1a2ba27..8527401 100755 (executable)
@@ -240,6 +240,25 @@ public class JalviewLite extends Applet
 \r
                 if(featuresFile!=null)\r
                   currentAlignFrame.parseFeaturesFile(featuresFile);\r
+\r
+                String pdbfile = applet.getParameter("PDBFILE");\r
+                if(pdbfile!=null)\r
+                {\r
+                  if(pdbfile.indexOf("://")==-1)\r
+                       pdbfile = getCodeBase() + pdbfile;\r
+\r
+                  String sequence = applet.getParameter("PDBSEQ");\r
+\r
+                  if(sequence!=null)\r
+                  {\r
+                    new MCview.AppletPDBViewer(pdbfile, "URL",\r
+                                               (Sequence)currentAlignFrame.getAlignViewport().getAlignment().findName(sequence),\r
+                                               currentAlignFrame.getSeqcanvas());\r
+\r
+\r
+                  }\r
+\r
+                }\r
             }\r
             else\r
             {\r