return viewStructures(getViewerType(), ap, pdb, sequenceIs);
}
- public JalviewStructureDisplayI createView(Viewer jmol, String[] pdbf,
+ public JalviewStructureDisplayI createView(Viewer viewer, String[] pdbf,
String[] id, SequenceI[][] sq, AlignmentPanel alignPanel,
boolean useinJmolsuperpos, boolean usetoColourbyseq,
boolean jmolColouring, String fileloc, Rectangle rect, String vid)
{
JalviewStructureDisplayI sview = null;
- switch (getViewerType())
+ switch (viewer)
{
case JMOL:
-
sview = new AppJmol(pdbf, id, sq, alignPanel, useinJmolsuperpos,
usetoColourbyseq, jmolColouring, fileloc, rect, vid);
-
break;
case CHIMERA:
+ Cache.log.error("Unsupported structure viewer type "
+ + viewer.toString());
break;
default:
- Cache.log.error("Unknown structure viewer type "
- + getViewerType().toString());
+ Cache.log.error("Unknown structure viewer type " + viewer.toString());
}
return sview;
}