Examples of Parameterization


Examples of org.eclipse.core.commands.Parameterization

    try {
      IHandlerService handlerService = (IHandlerService) serviceLocator.getService(IHandlerService.class);
      ICommandService commandService = (ICommandService) serviceLocator.getService(ICommandService.class);
      Command showView = commandService.getCommand(IWorkbenchCommandConstants.VIEWS_SHOW_VIEW);
      IParameter parm1 = showView.getParameter(IWorkbenchCommandConstants.VIEWS_SHOW_VIEW_PARM_ID);
      Parameterization parmId1 = new Parameterization(parm1, HttpRequestView.ID);
      IParameter parm2 = showView.getParameter(IWorkbenchCommandConstants.VIEWS_SHOW_VIEW_SECONDARY_ID);
      Parameterization parmId2 = new Parameterization(parm2, ScannerPerspectiveFactory.HTTP_VIEW_SECONDARY_ID);
      ParameterizedCommand parmCommand = new ParameterizedCommand(showView, new Parameterization[] { parmId1, parmId2 });
      handlerService.executeCommand(parmCommand, null);

      IViewPart view = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(HttpRequestView.ID, ScannerPerspectiveFactory.HTTP_VIEW_SECONDARY_ID, IWorkbenchPage.VIEW_VISIBLE);
      if(view instanceof HttpRequestView && arguments[0] instanceof String) {
View Full Code Here

Examples of org.eclipse.core.commands.Parameterization

    } catch (NotDefinedException e) {
      this.throwCoreException("Unable to execute command, invalid parameter :" + e.getMessage(), e);
    }

    // parametrize it
    Parameterization parmRoot = new Parameterization(rootParm, containerName);
    Parameterization parmProjectName = new Parameterization(projectNameParm, projectName);
    ParameterizedCommand parmCommand = new ParameterizedCommand(cmd, new Parameterization[] { parmRoot, parmProjectName });

    // exec the command
    try {
      handlerService.executeCommand(parmCommand, null);
View Full Code Here

Examples of org.eclipse.core.commands.Parameterization

    } catch (NotDefinedException e) {
      this.throwCoreException("Unable to execute command, invalid parameter :" + e.getMessage(), e);
    }

    // parametrize it
    Parameterization parmDir = new Parameterization(dirParm, containerName);
    Parameterization parmFile = new Parameterization(fileParm, fileName);
    ParameterizedCommand parmCommand = new ParameterizedCommand(createPmiFileCmd, new Parameterization[] { parmDir, parmFile });

    // exec the command
    try {
      handlerService.executeCommand(parmCommand, null);
View Full Code Here

Examples of org.eclipse.core.commands.Parameterization

    } catch (NotDefinedException e) {
      this.throwCoreException("Unable to execute command, invalid parameter :" + e.getMessage(), e);
    }
 
    // parametrize it
    Parameterization parmUmlPath = new Parameterization(umlPathParm, umlResourcePath);
    Parameterization parmDoBundling = new Parameterization(doBundlingParm, Boolean.toString(doBundling));
    Parameterization parmTargetModelFile = new Parameterization(targetModelFileParm, modelPath);
    ParameterizedCommand parmCommand = new ParameterizedCommand(command,
        new Parameterization[] { parmUmlPath, parmDoBundling, parmTargetModelFile});
   
    // exec the command
    try {
View Full Code Here

Examples of org.eclipse.core.commands.Parameterization

        if (Activator.getDefault().getPreferenceStore().getBoolean(
            UIPreferences.RESOURCEHISTORY_COMPARE_MODE))
          try {
            IParameter parm = cmd
                .getParameter(HistoryViewCommands.COMPARE_MODE_PARAM);
            parms = new Parameterization[] { new Parameterization(
                parm, Boolean.TRUE.toString()) };
          } catch (NotDefinedException e) {
            Activator.handleError(e.getMessage(), e, true);
            parms = null;
          }
View Full Code Here

Examples of org.eclipse.core.commands.Parameterization

            if (parameters != null)
            {
                for (int ii = 0; ii < parameters.length; ii++)
                {
                    IParameter p = cmd.getParameter(parameters[ii]);
                    parameterizations.add(new Parameterization(p, parameters[++ii]));
                }
            }

            ParameterizedCommand pCmd = new ParameterizedCommand(cmd,
                            parameterizations.toArray(new Parameterization[0]));
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.