Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.DisconnectProviderOperation.execute()


  public void disconnect(IProject project) throws CoreException {
    Collection<IProject> projects = Collections.singleton(project
        .getProject());
    DisconnectProviderOperation disconnect = new DisconnectProviderOperation(
        projects);
    disconnect.execute(null);
  }

  public URIish getUri() throws URISyntaxException {
    return new URIish("file:///" + repository.getDirectory().toString());
  }
View Full Code Here


      assertNotNull(fh);
      assertEquals(fh.getFileRevisions().length, 1);
      assertNotNull(fh.getFileRevision(commit.getId().getName()));
    } finally {
      DisconnectProviderOperation disconnectOp = new DisconnectProviderOperation(Collections.singletonList(proj));
      disconnectOp.execute(progress);
      Activator.getDefault().getRepositoryUtil().removeDir(singleProjectGitDir);
      singleProjectRepo.close();
      singleRepoProject.dispose();
    }
  }
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.