Search in sources :

Example 1 with TranslationLogger

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;
}
Also used : VCDocument(org.vcell.util.document.VCDocument) Document(org.jdom.Document) VCDocument(org.vcell.util.document.VCDocument) File(java.io.File) Component(java.awt.Component) TranslationLogger(cbit.vcell.client.TranslationLogger) VCLogger(cbit.util.xml.VCLogger)

Aggregations

VCLogger (cbit.util.xml.VCLogger)1 TranslationLogger (cbit.vcell.client.TranslationLogger)1 Component (java.awt.Component)1 File (java.io.File)1 Document (org.jdom.Document)1 VCDocument (org.vcell.util.document.VCDocument)1