boolean embedded = false;
public boolean jmolAvailable = false;
+ public static boolean debug;
/**
* init method for Jalview Applet
*/
public void init()
{
+ String dbg = getParameter("debug");
+ if (dbg!=null)
+ {
+ debug = dbg.toLowerCase().equals("true");
+ }
int r = 255;
int g = 255;
int b = 255;
if (frame instanceof AlignFrame)
{
currentAlignFrame = (AlignFrame) frame;
- System.err.println("Activated window "+frame);
+ if (debug)
+ {
+ System.err.println("Activated window "+frame);
+ }
}
}
public LoadingThread(String _file,
JalviewLite _applet)
{
+ if (applet.debug)
+ {
+ System.err.println("Loading thread started with:\n>>file\n"+_file+">>endfile");
+ }
file = _file;
if (file.startsWith("PASTE"))
{
file = addProtocol(file);
protocol = AppletFormatAdapter.URL;
}
+ if (applet.debug)
+ {
+ System.err.println("Protocol identified as '"+protocol+"'");
+ }
format = new jalview.io.IdentifyFile().Identify(file, protocol);
+ if (applet.debug)
+ {
+ System.err.println("File identified as '"+format+"'");
+ }
applet = _applet;
}
pdbFileCount++;
}
while(pdbFileCount < 10);
-
+
+ /////////////////////////////
+ // modify display of features
+ //
+ // hide specific groups
+ param = getParameter("hidefeaturegroups");
+ if (param != null)
+ {
+ applet.setFeatureGroupState(param, false);
+ }
+ // show specific groups
+ param = getParameter("showfeaturegroups");
+ if (param != null)
+ {
+ applet.setFeatureGroupState(param, true);
+ }
}
else
{
{ String[] v = new String[jv.size()];
jv.copyInto(v);
jv.removeAllElements();
- System.err.println("Array from Tabbed List:\n"+v.length+"\n"+v.toString());
+ if (debug)
+ {
+ System.err.println("Array from Tabbed List:\n"+v.length+"\n"+v.toString());
+ }
return v;
}
- System.err.println("Empty Array from Tabbed List");
+ if (debug)
+ {
+ System.err.println("Empty Array from Tabbed List");
+ }
return null;
}
if (list[list.length-1]!=null)
{ v.append(list[list.length-1]);
}
- System.err.println("Tabbed List:\n"+v.toString());
+ if (debug)
+ {
+ System.err.println("Tabbed List:\n"+v.toString());
+ }
return v.toString();
}
- System.err.println("Empty Tabbed List\n");
+ if (debug)
+ {
+ System.err.println("Empty Tabbed List\n");
+ }
return "";
}
/**