Package org.jmule.ui.swing.wizards

Examples of org.jmule.ui.swing.wizards.SetupWizard


      splash.splashOn();

      splash.increaseProgress(5, "Initialize the system");

      SetupWizard setup_wizard;

      JMuleCoreFactory.create();

      JMuleCore _core = JMuleCoreFactory.getSingleton();

      JMuleCoreLifecycleAdapter core_lifecycle_listener = new JMuleCoreLifecycleAdapter() {

        public void componentStarted(JMuleCoreComponent component) {

          if (component instanceof ConfigurationManager)
            splash.increaseProgress(10, "Config manager started");
          else if (component instanceof SharingManager)
            splash.increaseProgress(10, "Sharing manager started");
          else if (component instanceof UploadManager)
            splash.increaseProgress(10, "Upload manager started");
          else if (component instanceof PeerManager)
            splash.increaseProgress(10, "Peer manager started");
          else if (component instanceof DownloadManager)
            splash.increaseProgress(10, "Download manager started");
          else if (component instanceof ServerManager)
            splash.increaseProgress(10, "Server manager started");

        }

      };

      _core.addLifecycleListener(core_lifecycle_listener);

      _core.start();

      splash.increaseProgress(10, "JMule core started");

      _core.removeLifecycleListener(core_lifecycle_listener);

      boolean is_core_first_run = _core.isFirstRun();

      if (!is_core_first_run) {

        splash.increaseProgress(5, "Starting JMule UI manager");

        splash.splashOff();

        JMuleUIManager.create();

      }

      if (is_core_first_run) {

        splash.increaseProgress(5, "Running setup wizard");

        // setup_wizard = new SetupWizard(splash);

        setup_wizard = new SetupWizard();

        setup_wizard.setAlwaysOnTop(true);

        setup_wizard.setVisible(true);

        splash.splashOff();
      }

    } catch (Throwable t) {
View Full Code Here


      }
    });
   
    config_wizard.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent event) {
        SetupWizard setup_wizard = new SetupWizard();
        setup_wizard.pack();
        setup_wizard.setVisible(true);
      }
    });
   
    options.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent event) {
View Full Code Here

    MenuItem wizard_item = new MenuItem (submenu, SWT.PUSH);
    wizard_item.setImage(SWTImageRepository.getMenuImage("wizard.png"));
    wizard_item.setText(Localizer._("mainwindow.mainmenu.tools.wizard"));
    wizard_item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        SetupWizard setup_wizard = new SetupWizard();
        setup_wizard.setVisible(true);
      }
    });
   
    new MenuItem (submenu, SWT.SEPARATOR);
   
View Full Code Here

TOP

Related Classes of org.jmule.ui.swing.wizards.SetupWizard

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.