Package net.sf.mzmine.desktop.impl

Examples of net.sf.mzmine.desktop.impl.MainWindow


    if (!(MZmineCore.getDesktop() instanceof MainWindow))
      return;

    Runnable swingThreadCode = new Runnable() {
      public void run() {
        MainWindow mainWindow = (MainWindow) MZmineCore.getDesktop();

        // Update the name of the project in the window title
        mainWindow.updateTitle();

        ProjectTree projectTree = mainWindow.getMainPanel()
            .getProjectTree();
        projectTree.setModel(treeModel);

        // Expand the rows Raw data files and Peak lists items by
        // default
View Full Code Here


      // generally recommended
      Runnable desktopInit = new Runnable() {
        public void run() {

          logger.fine("Initializing GUI");
          MainWindow mainWindow = new MainWindow();
          desktop = mainWindow;
          mainWindow.initModule();

          // Activate project - bind it to the desktop's project tree
          MZmineProjectImpl currentProject = (MZmineProjectImpl) projectManager
              .getCurrentProject();
          currentProject.activateProject();

          // add desktop menu icon
          for (Class<?> moduleClass : MZmineModulesList.MODULES) {
            MZmineModule module = initializedModules
                .get(moduleClass);
            if (module == null)
              continue;
            if (!(module instanceof MZmineProcessingModule))
              continue;
            mainWindow.getMainMenu().addMenuItemForModule(
                (MZmineProcessingModule) module);
          }
        };
      };
View Full Code Here

      // Update the location of the project
      savedProject.setProjectFile(saveFile);

      // Update the window title to reflect the new name of the project
      if (MZmineCore.getDesktop() instanceof MainWindow) {
        MainWindow mainWindow = (MainWindow) MZmineCore.getDesktop();
        mainWindow.updateTitle();
      }

      logger.info("Finished saving the project to " + saveFile);

      setStatus(TaskStatus.FINISHED);
View Full Code Here

      response.cancelQuit();
  }

  @Override
  public void handleAbout(AboutEvent e) {
    MainWindow mainWindow = (MainWindow) MZmineCore.getDesktop();
    mainWindow.showAboutDialog();
  }
View Full Code Here

   */
  public HelpButton(String helpID) {

    super("Help");

    MainWindow mainWindow = (MainWindow) MZmineCore.getDesktop();
    HelpImpl helpImp = mainWindow.getHelpImpl();

    if (helpImp == null) {
      setEnabled(false);
      return;
    }
View Full Code Here

TOP

Related Classes of net.sf.mzmine.desktop.impl.MainWindow

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.