Examples of PushNode


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

          firstUri = rc.getPushURIs().get(0);
        else
          firstUri = rc.getURIs().get(0);

        if (uriCount == 1)
          children.add(new PushNode(node, node.getRepository(),
              firstUri.toPrivateString()));
        else
          children.add(new PushNode(node, node.getRepository(),
              firstUri.toPrivateString() + "...")); //$NON-NLS-1$
      }
      return children.toArray();

    }
View Full Code Here

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

/**
* Deletes the Push
*/
public class DeletePushCommand extends RepositoriesViewCommandHandler<PushNode> {
  public Object execute(ExecutionEvent event) throws ExecutionException {
    PushNode node = getSelectedNodes(event).get(0);
    RemoteNode remote = (RemoteNode) node.getParent();
    StoredConfig config = node.getRepository().getConfig();
    config.unset("remote", remote.getObject(), "pushurl"); //$NON-NLS-1$ //$NON-NLS-2$
    config.unset("remote", remote.getObject(), "push"); //$NON-NLS-1$ //$NON-NLS-2$
    try {
      config.save();
    } catch (IOException e1) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.