- "ANNOTATIONCOLOUR_MAX", "ANNOTATIONCOLOUR_MIN", "annotations",
+ Preferences.ANNOTATIONCOLOUR_MAX, Preferences.ANNOTATIONCOLOUR_MIN,
+ "annotations",
"APPLICATION_URL", "automaticScrolling", "centrecolumnlabels",
"debug", "defaultColour", "defaultColourNuc", "defaultColourProt",
"embedded", "enableSplitFrame", "externalstructureviewer", "features",
"APPLICATION_URL", "automaticScrolling", "centrecolumnlabels",
"debug", "defaultColour", "defaultColourNuc", "defaultColourProt",
"embedded", "enableSplitFrame", "externalstructureviewer", "features",
- String appName = getAttr(arg, "name");
+ String prefName = getAttr(arg, "name");
+ String appletName = prefName.toLowerCase();
+ String argName = prefName;
// note that Application arguments ARE case-sensitive, but
// Applet.getParameter() is not.
switch (appletName)
{
// note that Application arguments ARE case-sensitive, but
// Applet.getParameter() is not.
switch (appletName)
{
- appName = "tree";
- value = resourcePath + value;
- appletName = null; // taken care of by Jalview
- break;
- // implemented; not tested:
- case "annotations":
+ // setting appletName to null indicates that we want
+ // Jalview.doMain to taken care of this as Jalview args
+ argName = "tree";
+ appletName = null;
- appName = "enableSplitFrame";
- break;
- case "externalstructureviewer":
- break;
- case "alignpdbfiles":
- break;
- case "application_url":
- appName = "APPLICATION_URL";
+ prefName = Preferences.ENABLE_SPLIT_FRAME;
+ if (appletName.startsWith("pdbfile")
+ || appletName.startsWith("sequence") && Character.isDigit(
+ appletName.charAt(appletName.length() - 1)))
+ {
+ // could be pdbFile2, for example
+ prefName = argName = null;
+ value = resourcePath + value;
+ break;
+ }
+ // or one of the app preference names