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

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


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

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


      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

* Configures the Remote
*/
public class ConfigureRemoteCommand extends
    RepositoriesViewCommandHandler<RemotesNode> {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    RemotesNode node = getSelectedNodes(event).get(0);
    Repository repository = node.getRepository();

    NewRemoteDialog nrd = new NewRemoteDialog(getShell(event), repository);
    if (nrd.open() != Window.OK)
      return null;

View Full Code Here

TOP

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

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.