Examples of execute()


Examples of org.eclipse.ecf.provider.irc.internal.bot.ICommandEntry.execute()

      IChatRoomMessageEvent roomEvent = (IChatRoomMessageEvent) event;
      IChatRoomMessage message = roomEvent.getChatRoomMessage();
      List commands = bot.getCommands();
      for(int i = 0; i < commands.size(); i++) {
        ICommandEntry entry = (ICommandEntry) commands.get(i);
        entry.execute(message.getMessage(), sender);
      }
    }
  }
 
}
View Full Code Here

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

    String jobname = UIText.AddToIndexAction_addingFiles;
    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);
        }
        return Status.OK_STATUS;
View Full Code Here

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

  @Test
  public void testCheckoutRemote() throws Exception {
    Repository repo = lookupRepository(clonedRepositoryFile);
    BranchOperation bop = new BranchOperation(repo, "refs/heads/master");
    bop.execute(null);

    assertEquals("master", repo.getBranch());
    SWTBotTree tree = getOrOpenView().bot().tree();

    SWTBotTreeItem item = myRepoViewUtil.getLocalBranchesItem(tree,
View Full Code Here

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

        UIText.CherryPickHandler_JobName,
        Integer.valueOf(commits.size()))) {
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          op.execute(monitor);
          RebaseResult result = op.getResult();
          if (result.getStatus() != RebaseResult.Status.OK) {
            RebaseResultDialog.show(result, repo);
          }
        } catch (CoreException e) {
View Full Code Here

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

    untracked.addAll(Arrays.asList(commitables));
    // commit to stable
    CommitOperation op = new CommitOperation(commitables,
        untracked, TestUtil.TESTAUTHOR, TestUtil.TESTCOMMITTER,
        "Initial commit");
    op.execute(null);

    // now create a stable branch (from master)
    createStableBranch(myRepository);
    // and check in some stuff into master again
    touchAndSubmit(null);
View Full Code Here

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

  protected void connectProject(final IProgressMonitor monitor,
      final File repositoryPath, final IProject project)
      throws CoreException {
    final ConnectProviderOperation connectProviderOperation = new ConnectProviderOperation(
        project, repositoryPath);
    connectProviderOperation.execute(monitor);
  }

  protected void createProject(final IProgressMonitor monitor,
      final IProjectDescription projectDescription,
      final IProject project, boolean exists) throws CoreException {
View Full Code Here

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

      RevCommit commit, IProgressMonitor monitor) throws CoreException,
      GitAPIException {
    monitor.setTaskName(UIText.FetchGerritChangePage_CreatingBranchTaskName);
    CreateLocalBranchOperation bop = new CreateLocalBranchOperation(
        repository, textForBranch, commit);
    bop.execute(monitor);

    if (doCheckout) {
      CheckoutCommand co = new Git(repository).checkout();
      try {
        co.setName(textForBranch).call();
View Full Code Here

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

    try {
      getContainer().run(true, true, new IRunnableWithProgress() {
        public void run(IProgressMonitor monitor)
            throws InvocationTargetException {
          try {
            operation.execute(monitor);

            String content = operation.getPatchContent();
            if (file != null) {
              writeToFile(file, content);
              IFile[] files = ResourcesPlugin.getWorkspace()
View Full Code Here

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

    super.buttonPressed(buttonId);
  }

  private int deleteBranch(final Set<Ref> ref, boolean force) throws CoreException {
    DeleteBranchOperation dbop = new DeleteBranchOperation(repo, ref, force);
    dbop.execute(null);
    return dbop.getStatus();
  }

  private List<RefNode> extractSelectedRefNodes() {
    List<RefNode> nodes = new ArrayList<RefNode>();
View Full Code Here

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

      return;

    DeletePathsOperation operation = new DeletePathsOperation(paths);

    try {
      operation.execute(null);
    } catch (CoreException e) {
      Activator.handleError(UIText.DeleteResourcesOperationUI_deleteFailed, e, true);
    }
  }
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.