Examples of ProjectTree


Examples of jSimMacs.display.ProjectTree

    centerPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);

    newFileTree = new SimpleProjectTree(new DefaultMutableTreeNode(
        "Projects"));
    pTree = new ProjectTree(new DefaultMutableTreeNode("Projects"));

    centerPane.setLeftComponent(new JScrollPane(pTree));

    // content.add("West", new JScrollPane(pTree));
View Full Code Here

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

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

  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

Examples of org.encog.workbench.frames.document.tree.ProjectTree

    }
  }

  private void initContents() {

    this.tree = new ProjectTree(this);
    this.tabManager = new EncogTabManager(this);

    this.outputPanel = new EncogOutputPanel();

    this.documentSplit = new JSplitPane(JSplitPane.VERTICAL_SPLIT,
View Full Code Here

Examples of org.sonar.batch.ProjectTree

    getComponentByType(ExtensionInstaller.class).install(this, new BatchExtensionFilter());
  }

  @Override
  protected void doAfterStart() {
    ProjectTree tree = getComponentByType(ProjectTree.class);
    scanRecursively(tree.getRootProject());
  }
View Full Code Here

Examples of org.sonar.batch.ProjectTree

    deprecatedViolations = mock(DeprecatedViolations.class);
    MetricFinder metricFinder = mock(MetricFinder.class);
    when(metricFinder.findByKey("ncloc")).thenReturn(CoreMetrics.NCLOC);
    ruleFinder = mock(RuleFinder.class);

    ProjectTree projectTree = mock(ProjectTree.class);
    index = new DefaultIndex(mock(PersistenceManager.class), projectTree, metricFinder, mock(ScanGraph.class), deprecatedViolations, mock(ResourceKeyMigration.class),
      mock(MeasureCache.class));

    java.io.File baseDir = temp.newFolder();
    project = new Project("project");
    when(projectTree.getProjectDefinition(project)).thenReturn(ProjectDefinition.create().setBaseDir(baseDir));
    moduleA = new Project("moduleA").setParent(project);
    when(projectTree.getProjectDefinition(moduleA)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleA")));
    moduleB = new Project("moduleB").setParent(project);
    when(projectTree.getProjectDefinition(moduleB)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleB")));
    moduleB1 = new Project("moduleB1").setParent(moduleB);
    when(projectTree.getProjectDefinition(moduleB1)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleB/moduleB1")));

    RulesProfile rulesProfile = RulesProfile.create();
    rule = Rule.create("repoKey", "ruleKey", "Rule");
    rule.setId(1);
    rulesProfile.activateRule(rule, null);
View Full Code Here

Examples of org.sonar.batch.ProjectTree

    java.io.File baseDir = temp.newFolder();

    ResourcePersister persister = new DefaultResourcePersister(getSession(), mock(ResourcePermissions.class), snapshotCache, resourceCache);

    ProjectTree projectTree = mock(ProjectTree.class);
    when(projectTree.getRootProject()).thenReturn(multiModuleProject);
    when(projectTree.getProjectDefinition(multiModuleProject)).thenReturn(ProjectDefinition.create().setBaseDir(baseDir));
    when(projectTree.getProjectDefinition(moduleA)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleA")));
    when(projectTree.getProjectDefinition(moduleB)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleB")));
    when(projectTree.getProjectDefinition(moduleB1)).thenReturn(ProjectDefinition.create().setBaseDir(new java.io.File(baseDir, "moduleB/moduleB1")));

    PersistenceManager persistenceManager = new DefaultPersistenceManager(persister, null, null, null, null);
    DefaultIndex index = new DefaultIndex(persistenceManager, projectTree, mock(MetricFinder.class), mock(ScanGraph.class), mock(DeprecatedViolations.class),
      mock(ResourceKeyMigration.class),
      mock(MeasureCache.class));
View Full Code Here

Examples of org.sonar.batch.ProjectTree

    pastSnapshotFinder = mock(PastSnapshotFinder.class);
  }

  @Test
  public void should_init_past_snapshots() {
    ProjectTree projectTree = mock(ProjectTree.class);
    when(projectTree.getRootProject()).thenReturn(new Project("my:project"));
    new PeriodsDefinition(getSession(), projectTree, settings, pastSnapshotFinder);

    verify(pastSnapshotFinder).find(argThat(new ArgumentMatcher<Snapshot>() {
      @Override
      public boolean matches(Object o) {
View Full Code Here

Examples of org.sonar.batch.ProjectTree

    }), anyString(), eq(settings), eq(1));
  }

  @Test
  public void should_not_init_past_snapshots_if_first_analysis() {
    ProjectTree projectTree = mock(ProjectTree.class);
    when(projectTree.getRootProject()).thenReturn(new Project("new:project"));

    new PeriodsDefinition(getSession(), projectTree, settings, pastSnapshotFinder);

    verifyZeroInteractions(pastSnapshotFinder);
  }
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.