- System.err.println("Couldn't execute callback with " + _listenerfn
- + " using args { " + st[0] + ", " + st[1] + ", " + st[2]
- + "," + st[3] + "\n");
- ex.printStackTrace();
-
+ try
+ {
+ // TODO is this right? StructureSelectionManager passes pdbFile as the
+ // field that is interpreted (in 2.8.2) as pdbId?
+ // JBPComment: yep - this is right! the Javascript harness uses the
+ // absolute pdbFile URI to locate the PDB file in the external viewer
+ executeJavascriptFunction(_listenerfn,
+ new String[] { "mouseover", "" + atom.getPdbFile(),
+ "" + atom.getChain(), "" + (atom.getPdbResNum()),
+ "" + atom.getAtomIndex() });
+ } catch (Exception ex)
+ {
+ System.err.println("Couldn't execute callback with " + _listenerfn
+ + " for atomSpec: " + atom);
+ ex.printStackTrace();
+ }