\r
import java.awt.*;\r
import java.awt.event.*;\r
+import jalview.appletgui.TreePanel;\r
\r
\r
/**\r
if(featuresFile!=null)\r
currentAlignFrame.parseFeaturesFile(featuresFile);\r
\r
+ String treeFile = applet.getParameter("treeFile");\r
+ if (treeFile != null)\r
+ {\r
+ try\r
+ {\r
+ jalview.io.NewickFile fin = new jalview.io.NewickFile(applet.\r
+ getCodeBase() + treeFile, "URL");\r
+ fin.parse();\r
+\r
+ if (fin.getTree() != null)\r
+ {\r
+ TreePanel tp = null;\r
+ tp = new TreePanel(currentAlignFrame.viewport,\r
+ currentAlignFrame.viewport.getAlignment().getSequences(),\r
+ fin, "FromFile", applet.getCodeBase() + treeFile);\r
+ jalview.bin.JalviewLite.addFrame(tp, treeFile, 600, 500);\r
+ currentAlignFrame.addTreeMenuItem(tp, treeFile);\r
+ }\r
+ }\r
+ catch (Exception ex)\r
+ {\r
+ ex.printStackTrace();\r
+ }\r
+ }\r
+\r
+\r
String pdbfile = applet.getParameter("PDBFILE");\r
if(pdbfile!=null)\r
{\r
new MCview.AppletPDBViewer(pdbfile, "URL",\r
(Sequence)currentAlignFrame.getAlignViewport().getAlignment().findName(sequence),\r
currentAlignFrame.getSeqcanvas());\r
-\r
-\r
}\r
\r
}\r