/* $Id: Xml2OtherGui.java,v 1.1 2006/10/20 20:23:35 m31 Exp $
 *
 * This file is part of the project "Hilbert II" - http://www.qedeq.org
 *
 * Copyright 2000-2006,  Michael Meyling <mime@qedeq.org>.
 *
 * "Hilbert II" is free software; you can redistribute
 * it and/or modify it under the terms of the GNU General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 */

package org.qedeq.kernel.rel.test.gui;


import java.io.IOException;

import org.qedeq.kernel.log.Trace;
import org.qedeq.kernel.rel.test.text.Xml2Latex;


/**
 * Test application.
 *
 * @version $Revision: 1.1 $
 * @author    Michael Meyling
 */
public final class Xml2OtherGui  {

    /** Configuration file location. */
    private static final String CONFIG_XML2OTHER_PROPERTIES = "config/xml2other.properties";


    /**
     * Constructor.
     */
    private Xml2OtherGui() {
        // nothing to do
    }

    /**
     * Main method.
     *
     * @param   args        Not used.
     */
    public static final void main(final String[] args) {
        final String method = "main(String[])";
        try {
            Xml2Latex.initalizeTrace();
        } catch (IOException e) {
            // ignore
        }
        try {
            Trace.traceBegin(Xml2OtherGui.class, method);
            Trace.trace(Xml2OtherGui.class, method, "after initialization of trace");
            final StarterDialog starterDialog = new StarterDialog("Qedeq XML to LaTeX Conversion", 
                CONFIG_XML2OTHER_PROPERTIES);
            Trace.trace(Xml2OtherGui.class, method, "before show of starter dialog");
            starterDialog.show();
            Trace.trace(Xml2OtherGui.class, method, "after show of starter dialog");
        } catch (final Exception e) {
            e.printStackTrace();
            Trace.trace(Xml2OtherGui.class, method, e);
        } catch (final Error e) {
            e.printStackTrace();
            Trace.trace(Xml2OtherGui.class, method, e);
        } finally {
            Trace.traceEnd(Xml2OtherGui.class, method);
        }
    }

}
