Package net.sf.mzmine.desktop.impl.projecttree

Examples of net.sf.mzmine.desktop.impl.projecttree.ProjectTree


        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
        int childCount = treeModel.getChildCount(treeModel.getRoot());
        for (int i = 0; i < childCount; i++) {
          TreeNode node = (TreeNode) treeModel.getChild(
              treeModel.getRoot(), i);
          TreeNode pathToRoot[] = treeModel.getPathToRoot(node);
          TreePath path = new TreePath(pathToRoot);
          projectTree.expandPath(path);
        }
      }
    };
    try {
      if (SwingUtilities.isEventDispatchThread())
View Full Code Here


  public MainPanel() {

    super(new BorderLayout());

    // Initialize item selector
    projectTree = new ProjectTree();

    JScrollPane projectTreeScroll = new JScrollPane(projectTree);
    projectTreeScroll.setMinimumSize(new Dimension(200, 200));

    // Place objects on main window
View Full Code Here

TOP

Related Classes of net.sf.mzmine.desktop.impl.projecttree.ProjectTree

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.