Package org.jmule.ui.swt.updaterwindow

Examples of org.jmule.ui.swt.updaterwindow.UpdaterWindow


                if (JMUpdater.getInstance().isNewVersionAvailable())
                  SWTThread.getDisplay().asyncExec(new JMRunnable() {
                          public void JMRun() {
                            if (JMUpdater.getInstance().isNewVersionAvailable()) {
                        if (Utils.showConfirmMessage(shell, _._("mainwindow.new_version_available.title"), _._("mainwindow.new_version_available"))) {
                          UpdaterWindow window = new UpdaterWindow();
                          window.getCoreComponents();
                          window.initUIComponents();
                        } }
                        }});
              } catch (JMUpdaterException e) {}
                  }
                }).start();
View Full Code Here


    MenuItem update_check_item = new MenuItem (submenu, SWT.PUSH);
    update_check_item.setText(Localizer._("mainwindow.mainmenu.help.updatecheck"));
    update_check_item.setImage(SWTImageRepository.getMenuImage("updater.png"));
    update_check_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        UpdaterWindow window = new UpdaterWindow();
        window.getCoreComponents();
        window.initUIComponents();
      }
     
    });
   
    new MenuItem (submenu, SWT.SEPARATOR);
   
    MenuItem about_item = new MenuItem (submenu, SWT.PUSH);
    about_item.setText(Localizer._("mainwindow.mainmenu.help.about"));
    about_item.setImage(SWTImageRepository.getMenuImage("information.png"));
    about_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        AboutWindow window = new AboutWindow();
        window.getCoreComponents();
        window.initUIComponents();
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.jmule.ui.swt.updaterwindow.UpdaterWindow

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.