use of cbit.vcell.client.TranslationLogger in project vcell by virtualcell.
the class VCellClientTest method startupWithOpen.
private static VCDocument startupWithOpen(String fileName) {
VCDocument initialDocument = null;
try {
Document xmlDoc = XmlUtil.readXML(new File(fileName));
String vcmlString = XmlUtil.xmlToString(xmlDoc, false);
java.awt.Component parent = null;
VCLogger vcLogger = new TranslationLogger(parent);
initialDocument = XmlHelper.XMLToDocument(vcLogger, vcmlString);
} catch (Exception e) {
e.printStackTrace(System.out);
JOptionPane.showMessageDialog(null, e.getMessage(), "vcell startup error", JOptionPane.ERROR_MESSAGE);
}
return initialDocument;
}
Aggregations