From: amwaterhouse Date: Wed, 30 Nov 2005 18:13:46 +0000 (+0000) Subject: Load pdb file with applet X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ff5f2b888385f85e9fd99a226c9da098a06016d8;p=jalview.git Load pdb file with applet --- diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index 1a2ba27..8527401 100755 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -240,6 +240,25 @@ public class JalviewLite extends Applet if(featuresFile!=null) currentAlignFrame.parseFeaturesFile(featuresFile); + + String pdbfile = applet.getParameter("PDBFILE"); + if(pdbfile!=null) + { + if(pdbfile.indexOf("://")==-1) + pdbfile = getCodeBase() + pdbfile; + + String sequence = applet.getParameter("PDBSEQ"); + + if(sequence!=null) + { + new MCview.AppletPDBViewer(pdbfile, "URL", + (Sequence)currentAlignFrame.getAlignViewport().getAlignment().findName(sequence), + currentAlignFrame.getSeqcanvas()); + + + } + + } } else {