Examples of FetchNode


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

      } catch (URISyntaxException e) {
        return handleException(e, node);
      }

      if (!rc.getURIs().isEmpty())
        children.add(new FetchNode(node, node.getRepository(), rc
            .getURIs().get(0).toPrivateString()));

      int uriCount = rc.getPushURIs().size();
      if (uriCount == 0 && !rc.getURIs().isEmpty())
        uriCount++;
View Full Code Here

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

  private static final String URL = "url"; //$NON-NLS-1$

  private static final String PUSHURL = "pushurl"; //$NON-NLS-1$

  public Object execute(ExecutionEvent event) throws ExecutionException {
    FetchNode node = getSelectedNodes(event).get(0);
    RemoteNode remote = (RemoteNode) node.getParent();

    StoredConfig config = node.getRepository().getConfig();
    String fetchUrl = config.getString(REMOTE, remote.getObject(), URL);
    config.unset(REMOTE, remote.getObject(), FETCH);
    config.unset(REMOTE, remote.getObject(), URL);
    // the push URL may still be needed for fetch
    if (fetchUrl != null) {
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.