Examples of execute()


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

        UIText.RevertHandler_JobName, Integer.valueOf(commits.size()))) {

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
          RevCommit newHead = op.getNewHead();
          List<Ref> revertedRefs = op.getRevertedRefs();
          if (newHead != null && revertedRefs.isEmpty())
            showRevertedDialog(shell);
          if (newHead == null) {
View Full Code Here

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

        commit.name())) {

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
        } catch (CoreException e) {
          Activator.logError(UIText.RewordHandler_InternalError, e);
        }
        return Status.OK_STATUS;
      }
View Full Code Here

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

    Job job = new Job(MessageFormat.format(UIText.SquashHandler_JobName,
        Integer.valueOf(commits.size()))) {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
        } catch (CoreException e) {
          Activator.logError(UIText.SquashHandler_InternalError, e);
        }
        return Status.OK_STATUS;
      }
View Full Code Here

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

        UIText.StashApplyCommand_jobTitle, commit.name())) {

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
        } catch (CoreException e) {
          return new Status(IStatus.ERROR, Activator.getPluginId(),
              MessageFormat.format(
                  UIText.StashApplyCommand_applyFailed,
                  commit.abbreviate(7).name(),
View Full Code Here

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

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        monitor.beginTask("", 1); //$NON-NLS-1$
        try {
          op.execute(monitor);
          RevCommit commit = op.getCommit();
          if (commit == null)
            showNoChangesToStash();

        } catch (CoreException e) {
View Full Code Here

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

        UIText.StashApplyCommand_jobTitle, commit.name())) {

      @Override
      public IStatus runInWorkspace(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
        } catch (CoreException e) {
          Activator.logError(MessageFormat.format(
              UIText.StashDropCommand_dropFailed, "stash@{" //$NON-NLS-1$
                  + stashIndex + "}"), e); //$NON-NLS-1$
        }
View Full Code Here

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

        @Override
        public IStatus runInWorkspace(IProgressMonitor monitor) {
          monitor.beginTask("", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
          try {
            op.execute(monitor);
          } catch (CoreException e) {
            Activator.logError(UIText.SubmoduleAddCommand_AddError,
                e);
          }
          return Status.OK_STATUS;
View Full Code Here

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

              SubmoduleSyncOperation op = new SubmoduleSyncOperation(
                  entry.getKey());
              if (entry.getValue() != null)
                for (String path : entry.getValue())
                  op.addPath(path);
              op.execute(new SubProgressMonitor(monitor, 1));
            }
          } catch (CoreException e) {
            Activator.logError(
                UIText.SubmoduleSyncCommand_SyncError, e);
          }
View Full Code Here

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

              SubmoduleUpdateOperation op = new SubmoduleUpdateOperation(
                  entry.getKey());
              if (entry.getValue() != null)
                for (String path : entry.getValue())
                  op.addPath(path);
              op.execute(new SubProgressMonitor(monitor, 1));
            }
          } catch (CoreException e) {
            Activator.logError(
                UIText.SubmoduleUpdateCommand_UpdateError, e);
          }
View Full Code Here

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

    tag.setTag("SomeTag");
    tag.setTagger(RawParseUtils.parsePersonIdent(TestUtil.TESTAUTHOR));
    tag.setMessage("I'm just a little tag");
    tag.setObjectId(repo.resolve(repo.getFullBranch()), Constants.OBJ_COMMIT);
    TagOperation top = new TagOperation(repo, tag, false);
    top.execute(null);
    touchAndSubmit(null);
  }

  @Test
  public void testTagDialogShowExistingTags() throws Exception {
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.