From ff5f2b888385f85e9fd99a226c9da098a06016d8 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 30 Nov 2005 18:13:46 +0000 Subject: [PATCH] Load pdb file with applet --- src/jalview/bin/JalviewLite.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 { -- 1.7.10.2