Examples of execute()


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

          final String tagName = tag.getObject().getName();
          final DeleteTagOperation op = new DeleteTagOperation(repo,
              tagName);
          monitor.subTask(tagName);
          try {
            op.execute(monitor);
          } catch (CoreException e) {
            Activator.logError(e.getLocalizedMessage(), e);
          }
          monitor.worked(1);
        }
View Full Code Here

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

    String jobname = UIText.DiscardChangesAction_discardChanges;
    Job job = new WorkspaceJob(jobname) {
      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          operation.execute(monitor);
        } catch (CoreException e) {
          return Activator.createErrorStatus(e.getStatus()
              .getMessage(), e);
        }
        return Status.OK_STATUS;
View Full Code Here

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

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

  @Test
  public void edit() throws Exception {
    EditCommitOperation op = new EditCommitOperation(
        testRepository.getRepository(), firstCommit);
    op.execute(new NullProgressMonitor());

    assertEquals(RepositoryState.REBASING_INTERACTIVE, testRepository
        .getRepository().getRepositoryState());

    List<RebaseTodoLine> todos = testRepository.getRepository()
View Full Code Here

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

              getRepositoryName(repo));
          this.setName(name);
          final GarbageCollectOperation op = new GarbageCollectOperation(
              repo);
          try {
            op.execute(monitor);
          } catch (CoreException e) {
            Activator.logError(MessageFormat.format(
                UIText.GarbageCollectCommand_failed, repo), e);
          }
        }
View Full Code Here

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

    String jobname = UIText.IgnoreActionHandler_addToGitignore;
    Job job = new Job(jobname) {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          operation.execute(monitor);
        } catch (CoreException e) {
          return Activator.createErrorStatus(e.getStatus()
              .getMessage(), e);
        }
        if (operation.isGitignoreOutsideWSChanged())
View Full Code Here

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

      op.setCommit(mergeTargetSelectionDialog.isCommit());
      Job job = new WorkspaceJob(jobname) {
        @Override
        public IStatus runInWorkspace(IProgressMonitor monitor) {
          try {
            op.execute(monitor);
          } catch (final CoreException e) {
            return e.getStatus();
          }
          return Status.OK_STATUS;
        }
View Full Code Here

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

    // rebase topic onto master
    RebaseOperation op = new RebaseOperation(
        testRepository.getRepository(), testRepository.getRepository()
            .getRef(MASTER));
    op.execute(null);

    RebaseResult res = op.getResult();
    assertEquals(RebaseResult.Status.UP_TO_DATE, res.getStatus());

    RevCommit newTopic = new RevWalk(repository).parseCommit(repository
View Full Code Here

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

    final RemoveFromIndexOperation removeOperation = new RemoveFromIndexOperation(Arrays.asList(sel));
    Job job = new Job(UIText.RemoveFromIndexAction_removingFiles) {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          removeOperation.execute(monitor);
        } catch (CoreException e) {
          return Activator.createErrorStatus(e.getStatus()
              .getMessage(), e);
        } finally {
          monitor.done();
View Full Code Here

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

    // reset -> there should be no more changes
    ResetOperation rop = new ResetOperation(
        lookupRepository(repositoryFile), "refs/heads/master",
        ResetType.HARD);
    rop.execute(new NullProgressMonitor());

    clickCompareWith(compareWithIndexActionLabel);

    assertTreeCompareNoChange();
  }
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.