Examples of executeCommand()


Examples of org.eclipse.ui.handlers.IHandlerService.executeCommand()

 
                    Parameterization parm = new Parameterization(paramTMLFile, getInputFile().getFullPath().toString());
      
                    ParameterizedCommand parmCommand = new ParameterizedCommand(command, new Parameterization[] { parm });
                    handlerService.executeCommand(parmCommand, null);
                }
                catch (NotDefinedException e1) {
                }
                catch (ExecutionException e1) {
                    WorkbenchUtils.showErrorDialog(getSite().getShell(), "Unable to open tml module in browser", e1.getMessage());
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.executeCommand()

            link.addHyperlinkListener(new HyperlinkAdapter() {
              public void linkActivated(HyperlinkEvent e) {
                IHandlerService handlerService = (IHandlerService) fEditor.getSite().getService(IHandlerService.class);
                if (handlerService != null) {
                  try {
                    handlerService.executeCommand(menu.getId(), null);
                  } catch (Exception ex) {
                    WorkbenchUtils.showErrorDialog(Plugin.getDefault(), fEditor.getSite().getShell(), "Execution of hyperlink failed", "Unable to execute hyperlink command '" + menu.getId() + "'.", ex);
                  }
                }
              }
View Full Code Here

Examples of org.eclipse.ui.handlers.IHandlerService.executeCommand()

  @Override
  public void doubleClickAction() {
    IHandlerService handlerService = (IHandlerService) view.getSite()
        .getService(IHandlerService.class);
    try {
      handlerService.executeCommand(
          "org.mongodb.meclipse.editors.handlers.CallEditor", null);
    } catch (Exception ex) {
      System.out.println(ex.toString());
      // throw new RuntimeException(
      // "org.mongodb.meclipse.editors.handlers.CallEditor not found");
View Full Code Here

Examples of org.encog.app.analyst.commands.Cmd.executeCommand()

      }

      final Cmd cmd = this.commands.get(command);

      if (cmd != null) {
        canceled = cmd.executeCommand(args);
      } else {
        throw new AnalystError("Unknown Command: " + line);
      }

      reportCommandEnd(canceled);
View Full Code Here

Examples of org.exoplatform.frameworks.ftpclient.client.FtpClientSession.executeCommand()

      log.info("Test...");

      FtpClientSession client = FtpTestConfig.getTestFtpClient();
      client.connect();

      assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(new CmdUser("admin")));
      assertEquals(FtpConst.Replyes.REPLY_230, client.executeCommand(new CmdPass("admin")));

      assertEquals(FtpConst.Replyes.REPLY_227, client.executeCommand(new CmdPasv()));

      boolean connected = false;
View Full Code Here

Examples of org.exoplatform.frameworks.ftpclient.client.FtpClientSessionImpl.executeCommand()

         FtpClientSession client = new FtpClientSessionImpl(FtpTestConfig.FTP_HOST, FtpTestConfig.FTP_PORT);
         client.connect();

         {
            CmdUser cmdUser = new CmdUser(FtpTestConfig.USER_ID);
            assertEquals(FtpConst.Replyes.REPLY_331, client.executeCommand(cmdUser));
         }

         {
            CmdPass cmdPass = new CmdPass(FtpTestConfig.USER_PASS);
            assertEquals(FtpConst.Replyes.REPLY_230, client.executeCommand(cmdPass));
View Full Code Here

Examples of org.intellij.vcs.mks.actions.api.AddMemberAPICommand.executeCommand()

            //noinspection ThrowableInstanceNeverThrown
            exceptions.add(e);
        }
        AddMemberAPICommand addMemberAPICommand = new AddMemberAPICommand();
        try {
            addMemberAPICommand.executeCommand(mksVcs, exceptions, addedFiles.toArray(new VirtualFile[addedFiles.size()]));
        } catch (VcsException e) {
            //noinspection ThrowableInstanceNeverThrown
            exceptions.add(e);
        }
/*        DispatchBySandboxCommand dispatchAction = new DispatchBySandboxCommand(mksVcs,
View Full Code Here

Examples of org.intellij.vcs.mks.actions.api.CheckinAPICommand.executeCommand()

                    exceptions.add(new VcsException("only MODIFIED/ADDED (!= "+change.getFileStatus()+"files are currently supported" ));
            }
        }
        CheckinAPICommand checkinAPICommand = new CheckinAPICommand();
        try {
            checkinAPICommand.executeCommand(mksVcs, exceptions, modifiedFiles.toArray(new VirtualFile[modifiedFiles.size()]));
        } catch (VcsException e) {
            //noinspection ThrowableInstanceNeverThrown
            exceptions.add(e);
        }
        AddMemberAPICommand addMemberAPICommand = new AddMemberAPICommand();
View Full Code Here

Examples of org.intellij.vcs.mks.actions.api.CheckoutAPICommand.executeCommand()

        final MksSandboxInfo sandbox = entry.getKey();
        final ArrayList<VirtualFile> files = entry.getValue();
        final List<VcsException> errors = new ArrayList<VcsException>();

                final CheckoutAPICommand command = new CheckoutAPICommand();
                command.executeCommand(MksVcs.this, errors, files.toArray(new VirtualFile[files.size()]));
                    if (!errors.isEmpty()) {
                        //noinspection ThrowableResultOfMethodCallIgnored
                        Runnable runnable = new Runnable() {
                            public void run() {
                                Messages.showErrorDialog(errors.get(0).getLocalizedMessage(),
View Full Code Here

Examples of org.intellij.vcs.mks.actions.api.RevertAPICommand.executeCommand()

        RevertAPICommand revertAPICommand = new RevertAPICommand();
        try {
            List<VirtualFile> filesToRevert = new ArrayList<VirtualFile>();
            filesToRevert.addAll(modifiedFiles);
            filesToRevert.addAll(addedFiles);
            revertAPICommand.executeCommand(mksVcs, exceptions, filesToRevert.toArray(new VirtualFile[filesToRevert.size()]));
        } catch (VcsException e) {
            //noinspection ThrowableInstanceNeverThrown
            exceptions.add(e);
        }
        for (Change change : changes) {
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.