\r
this.setBackground(new Color(r, g, b));\r
\r
-\r
- param = getParameter("features");\r
- if(param!=null)\r
- {\r
- if(param.indexOf("://")==-1)\r
- param = getCodeBase() + param;\r
- }\r
- final String featuresFile = param;\r
-\r
file = getParameter("file");\r
if(file.indexOf("://")==-1)\r
file = getCodeBase() + file;\r
embedded = true;\r
LoadingThread loader = new LoadingThread(file,\r
"URL",\r
- featuresFile,\r
applet);\r
loader.start();\r
}\r
{\r
LoadingThread loader = new LoadingThread(file,\r
"URL",\r
- featuresFile,\r
applet);\r
loader.start();\r
}\r
String file;\r
String protocol;\r
String format;\r
- String featuresFile;\r
JalviewLite applet;\r
\r
public LoadingThread(String file,\r
String protocol,\r
- String features,\r
JalviewLite applet)\r
{\r
this.file = file;\r
this.protocol = protocol;\r
format = jalview.io.IdentifyFile.Identify(file, "URL");\r
- featuresFile = features;\r
this.applet = applet;\r
}\r
\r
\r
currentAlignFrame.statusBar.setText("Successfully loaded file " + file);\r
\r
- if (featuresFile != null)\r
- currentAlignFrame.parseFeaturesFile(featuresFile);\r
\r
String treeFile = applet.getParameter("treeFile");\r
if (treeFile != null)\r
{\r
+ if (treeFile.indexOf("://") == -1)\r
+ treeFile = getCodeBase() + treeFile;\r
+\r
try\r
{\r
jalview.io.NewickFile fin = new jalview.io.NewickFile(applet.\r
}\r
}\r
\r
+ String param = getParameter("features");\r
+ if (param != null)\r
+ {\r
+ if (param.indexOf("://") == -1)\r
+ param = getCodeBase() + param;\r
+\r
+ currentAlignFrame.parseFeaturesFile(param);\r
+ }\r
+\r
+ param = getParameter("annotations");\r
+ if (param != null)\r
+ {\r
+ if (param.indexOf("://") == -1)\r
+ param = getCodeBase() + param;\r
+\r
+ new AnnotationReader().readAnnotationFile(\r
+ currentAlignFrame.viewport.getAlignment(),\r
+ param);\r
+\r
+ currentAlignFrame.alignPanel.fontChanged();\r
+ }\r
+\r
\r
String pdbfile = applet.getParameter("PDBFILE");\r
if(pdbfile!=null)\r