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

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


  public SWTBotTreeItem getLocalBranchesItem(SWTBotTree tree, File repo)
      throws Exception {
    Repository repository = lookupRepository(repo);
    RepositoryNode root = new RepositoryNode(null, repository);
    BranchesNode branches = new BranchesNode(root, repository);
    LocalNode localBranches = new LocalNode(branches,
        repository);

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


  public AbstractBranchSelectionDialog(Shell parentShell,
      Repository repository, String refToMark, int settings) {
    super(parentShell);
    this.repo = repository;
    this.settings = settings;
    localBranches = new LocalNode(null, this.repo);
    remoteBranches = new RemoteTrackingNode(null, this.repo);
    tags = new TagsNode(null, this.repo);
    references = new AdditionalRefsNode(null, this.repo);
    this.refToMark = refToMark;
    setHelpAvailable(false);
View Full Code Here

    switch (node.getType()) {

    case BRANCHES: {
      List<RepositoryTreeNode> nodes = new ArrayList<RepositoryTreeNode>();
      nodes.add(new LocalNode(node, repo));
      nodes.add(new RemoteTrackingNode(node, repo));
      return nodes.toArray();
    }

    case LOCAL: {
View Full Code Here

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    Repository repo = lookupRepository(childRepositoryFile);
    REMOTE_BRANCHES = provider.getText(new RemoteTrackingNode(
        new RepositoryNode(null, repo), repo));
    LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
        null, repo), repo));
    ObjectId id = repo.resolve(repo.getFullBranch());
    initialCommitId = id.name();
  }
View Full Code Here

    top.execute(null);
    touchAndSubmit(null);

    RepositoriesViewLabelProvider provider = GitRepositoriesViewTestUtils
        .createLabelProvider();
    LOCAL_BRANCHES = provider.getText(new LocalNode(new RepositoryNode(
        null, repo), repo));
    TAGS = provider.getText(new TagsNode(new RepositoryNode(null, repo),
        repo));
  }
View Full Code Here

TOP

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

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.