Remove GUI code.
[jSite.git] / src / de / todesbaum / jsite / main / Main.java
index b04473d..005b50e 100644 (file)
@@ -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;
 
@@ -169,6 +172,7 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
                wizard.setIcon(jSiteIcon);
 
                updateChecker = new UpdateChecker(wizard, freenetInterface);
+               updateChecker.start();
 
                initPages();
                showPage(PageType.PAGE_PROJECTS);
@@ -201,16 +205,15 @@ public class Main implements ActionListener, ListSelectionListener, WizardListen
                        /**
                         * {@inheritDoc}
                         */
-                       @SuppressWarnings("synthetic-access")
                        public void actionPerformed(ActionEvent actionEvent) {
-                               updateChecker.checkForUpdates();
+                               /* TODO */
                        }
                };
                aboutAction = new AbstractAction(I18n.getMessage("jsite.menu.help.about")) {
 
                        @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
        //