protected void createChimeraViewer(Entry<String, ViewerData> viewerData,
AlignFrame af)
{
- final ViewerData svattrib = viewerData.getValue();
- ChimeraViewFrame cvf = new ChimeraViewFrame(svattrib, af);
+ final ViewerData data = viewerData.getValue();
+ String chimeraSession = data.stateData;
+ if (new File(chimeraSession).exists())
+ {
+ // TODO can/should this be done via StructureViewer (like Jmol)?
+ ChimeraViewFrame cvf = new ChimeraViewFrame(data, af);
+ }
+ else
+ {
+ Cache.log.error("Chimera session file " + chimeraSession
+ + " not found");
+ }
}
/**