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

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


      CommonUtils.runCommand(ActionCommands.COMMIT_ACTION,
          new StructuredSelection(repository));
      break;
    case IDialogConstants.ABORT_ID:
      CommonUtils.runCommand(ResetCommand.ID, new StructuredSelection(
          new RepositoryNode(null, repository)));
      break;
    case IDialogConstants.SKIP_ID:
      CommonUtils.runCommand(ActionCommands.STASH_CREATE,
          new StructuredSelection(
              new RepositoryNode(null, repository)));
      break;
    }
    super.buttonPressed(buttonId);
  }
View Full Code Here


    for (String directory : directories) {
      try {
        File gitDir = new File(directory);
        if (gitDir.exists()) {
          RepositoryNode rNode = new RepositoryNode(null,
              repositoryCache.lookupRepository(gitDir));
          nodes.add(rNode);
        } else
          repositoryUtil.removeDir(gitDir);
      } catch (IOException e) {
View Full Code Here

                .lookupRepository(subRepo.getDirectory());
            } finally {
              subRepo.close();
            }
            if (cachedRepo != null)
              children.add(new RepositoryNode(node, cachedRepo));
          }
        }
      } catch (IOException e) {
        handleException(e, node);
      }
View Full Code Here

    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

    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

* Implements "Fetch" from a Repository
*/
public class FetchCommand extends
    RepositoriesViewCommandHandler<RepositoryNode> {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    RepositoryNode node = getSelectedNodes(event).get(0);

    try {
      WizardDialog dlg = new WizardDialog(getShell(event),
          new FetchWizard(node.getRepository()));
      dlg.setHelpAvailable(false);
      dlg.open();
    } catch (URISyntaxException e1) {
      Activator.handleError(e1.getMessage(), e1, true);
    }
View Full Code Here

        branches.putAll(repo.getRefDatabase().getRefs(refPrefix));
      for (Ref branch : branches.values()) {
        if (branch.getLeaf().getObjectId().equals(commit))
          availableBranches.add(branch);
      }
      RepositoryNode repoNode = new RepositoryNode(null, repo);
      for (Ref ref : availableBranches)
        nodes.add(new RefNode(repoNode, repo, ref));

    } catch (IOException e) {
      // ignore here
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.RepositoryNode

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.