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

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


  public SWTBotTreeItem getRemoteBranchesItem(SWTBotTree tree,
      File repositoryFile) throws Exception {
    Repository repository = lookupRepository(repositoryFile);
    RepositoryNode root = new RepositoryNode(null, repository);
    BranchesNode branches = new BranchesNode(root, repository);
    RemoteTrackingNode remoteBranches = new RemoteTrackingNode(branches,
        repository);

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


      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: {
      if (branchHierarchyMode) {
View Full Code Here

    repositoryFile = createProjectAndCommitToRepository();
    childRepositoryFile = createChildRepository(repositoryFile);
    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

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

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.