X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fmain%2FMain.java;h=8218abc6809713f628d1fd604b407454342e1c33;hb=b9bf0fcac997c3cabf84348d18bccff041673da2;hp=b04473d5011432981526b8030d6c8b4cfdb8cb1f;hpb=195933c1bcb643143275b2725b01acecda59bcce;p=jSite.git diff --git a/src/de/todesbaum/jsite/main/Main.java b/src/de/todesbaum/jsite/main/Main.java index b04473d..8218abc 100644 --- a/src/de/todesbaum/jsite/main/Main.java +++ b/src/de/todesbaum/jsite/main/Main.java @@ -70,6 +70,9 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen /** Whether the debug mode is activated. */ private static boolean debug = false; + /** The version. */ + private static final Version VERSION = new Version(0, 6, 2); + /** The configuration. */ private Configuration configuration; @@ -210,7 +213,7 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen @SuppressWarnings("synthetic-access") public void actionPerformed(ActionEvent e) { - JOptionPane.showMessageDialog(wizard, MessageFormat.format(I18n.getMessage("jsite.about.message"), Version.getVersion()), null, JOptionPane.INFORMATION_MESSAGE, jSiteIcon); + JOptionPane.showMessageDialog(wizard, MessageFormat.format(I18n.getMessage("jsite.about.message"), getVersion().toString()), null, JOptionPane.INFORMATION_MESSAGE, jSiteIcon); } }; @@ -362,6 +365,15 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen return SUPPORTED_LOCALES[0]; } + /** + * Returns the version. + * + * @return The version + */ + public static final Version getVersion() { + return VERSION; + } + // // ACTIONS //