import jalview.datamodel.SequenceI;
import jalview.datamodel.StructureViewerModel;
import jalview.datamodel.StructureViewerModel.StructureData;
+import jalview.ext.jmol.JmolCommands;
import jalview.gui.ImageExporter.ImageWriterI;
import jalview.gui.StructureViewer.ViewerType;
import jalview.io.exceptions.ImageOutputException;
}
});
StringBuilder cmd = new StringBuilder();
- cmd.append("load FILES ").append(QUOTE)
- .append(Platform.escapeBackslashes(sessionFile)).append(QUOTE);
+ cmd.append(jmb.getCommandGenerator().loadFile(sessionFile));
initJmol(cmd.toString());
}
for (String s : files)
{
fileList.append(SPACE).append(QUOTE)
- .append(Platform.escapeBackslashes(s)).append(QUOTE);
+ .append(JmolCommands.escapeQuotedFilename(s)).append(QUOTE);
}
String filesString = fileList.toString();