Package org.eclipse.egit.ui.internal.repository.tree

Examples of org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode


  public SWTBotTreeItem getWorkdirItem(SWTBotTree tree, File repositoryFile)
      throws Exception {
    Repository repository = lookupRepository(repositoryFile);
    RepositoryNode root = new RepositoryNode(null, repository);

    WorkingDirNode workdir = new WorkingDirNode(root, repository);

    String rootText = labelProvider.getStyledText(root).getString();
    SWTBotTreeItem rootItem = tree.getTreeItem(rootText);
    SWTBotTreeItem workdirItem = rootItem.expand().getNode(
        labelProvider.getStyledText(workdir).getString());
View Full Code Here


   * @param repo
   */
  public void setRepository(Repository repo) {
    List<WorkingDirNode> input = new ArrayList<WorkingDirNode>();
    if (repo != null)
      input.add(new WorkingDirNode(null, repo));
    tv.setInput(input);
    // expand root node
    tv.expandToLevel(2);
    // select the working directory as default
    tv.setSelection(new StructuredSelection(input.get(0)));
View Full Code Here

      }
    });

    if (initialRepository != null) {
      List<WorkingDirNode> input = new ArrayList<WorkingDirNode>();
      WorkingDirNode node = new WorkingDirNode(null, initialRepository);
      input.add(node);
      tv.setInput(input);
      // expand root node
      tv.expandToLevel(2);
      // select the working directory as default
View Full Code Here

      nodeList.add(new BranchesNode(node, repo));
      nodeList.add(new TagsNode(node, repo));
      nodeList.add(new AdditionalRefsNode(node, repo));
      final boolean bare = repo.isBare();
      if (!bare)
        nodeList.add(new WorkingDirNode(node, repo));
      nodeList.add(new RemotesNode(node, repo));
      if(!bare && hasStashedCommits(repo))
        nodeList.add(new StashNode(node, repo));
      if (!bare && hasConfiguredSubmodules(repo))
        nodeList.add(new SubmodulesNode(node, repo));
View Full Code Here

TOP

Related Classes of org.eclipse.egit.ui.internal.repository.tree.WorkingDirNode

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.