Examples of SetupWizard


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

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

      }
    });
   
    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

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

    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

Examples of org.springframework.richclient.application.setup.SetupWizard

    @Override
    public void onPreStartup() {
        if (appSettings.getShowStartupWizard()
                && getApplication().getApplicationContext().containsBean("setupWizard")) {
            SetupWizard setupWizard = (SetupWizard) getApplication().
                    getApplicationContext().getBean("setupWizard", SetupWizard.class);
            setupWizard.execute();
            appSettings.setShowStartupWizard(false);
            try {
                appSettings.save();
            } catch (IOException ex) {
                logger.error("Can't save state.", ex);
View Full Code Here

Examples of org.springframework.richclient.application.setup.SetupWizard

     */
    public void onPreStartup()
    {
        if (getApplication().getApplicationContext().containsBean("setupWizard"))
        {
            SetupWizard setupWizard = (SetupWizard) getApplication().getApplicationContext().getBean(
                    "setupWizard", SetupWizard.class);
            setupWizard.execute();
        }
    }
View Full Code Here

Examples of org.springframework.richclient.application.setup.SetupWizard

public class RctLifecycleAdvisor extends DefaultApplicationLifecycleAdvisor {

  public void onPreWindowOpen(ApplicationWindowConfigurer configurer) {
    super.onPreWindowOpen(configurer);
    if (getApplicationServices().containsBean("setupWizard")) {
      SetupWizard setupWizard = (SetupWizard) getApplicationServices().getBean("setupWizard", SetupWizard.class);
      setupWizard.execute();
    }
    // comment out to hide the menubar, toolbar, or reduce window size...
    //configurer.setShowMenuBar(false);
    //configurer.setShowToolBar(false);
    configurer.setInitialSize(new Dimension(640, 480));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.