Search in sources :

Example 1 with LSFileFactory

use of net.parostroj.timetable.model.ls.LSFileFactory in project grafikon by jub77.

the class MainFrame method aboutMenuItemActionPerformed.

private void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
    // show about dialog
    ResourceBundle aboutBundle = ResourceBundle.getBundle("about");
    LSFileFactory f = LSFileFactory.getInstance();
    LSFile fls = null;
    try {
        fls = f.createForSave();
    } catch (LSException e) {
        log.warn("Cannot create FileLoadSave", e);
    }
    AboutDialog dialog = new AboutDialog(this, true, String.format(aboutBundle.getString("text"), model.getVersionInfo().getVersion(), fls == null ? "-" : fls.getSaveVersion()), getClass().getResource(aboutBundle.getString("image")), true, model.getVersionInfo());
    dialog.setLocationRelativeTo(this);
    dialog.setVisible(true);
    dialog.dispose();
}
Also used : LSFile(net.parostroj.timetable.model.ls.LSFile) LSFileFactory(net.parostroj.timetable.model.ls.LSFileFactory) LSException(net.parostroj.timetable.model.ls.LSException)

Aggregations

LSException (net.parostroj.timetable.model.ls.LSException)1 LSFile (net.parostroj.timetable.model.ls.LSFile)1 LSFileFactory (net.parostroj.timetable.model.ls.LSFileFactory)1