Package org.eclipse.core.commands

Examples of org.eclipse.core.commands.ParameterType


            "Commands should really have a category", //$NON-NLS-1$
            configurationElement, commandId,
            "categoryId", categoryId); //$NON-NLS-1$
      }

      final ParameterType returnType;
      if (returnTypeId == null) {
        returnType = null;
      } else {
        returnType = commandService.getParameterType(returnTypeId);
      }
View Full Code Here


      // Read out the optional attribute, if present.
      final boolean optional = readBoolean(parameterElement,
          ATT_OPTIONAL, true);

      final ParameterType type;
      if (typeId == null) {
        type = null;
      } else {
        type = commandService.getParameterType(typeId);
      }
View Full Code Here

       * null indicates there is no converter
       */
      final AbstractParameterValueConverter parameterValueConverter = (converter == null) ? null
          : new ParameterValueConverterProxy(configurationElement);

      final ParameterType parameterType = commandService
          .getParameterType(parameterTypeId);
      parameterType.define(type, parameterValueConverter);
    }

    // If there were any warnings, then log them now.
    logWarnings(
        warningsToLog,
View Full Code Here

      IEvaluationContext state = handlerService.getCurrentState();
      result = selectedCommand.executeWithChecks(null, state);
     
      String returnsAttribute = command.getReturns();
      if ((returnsAttribute != null) && (result != null)) {
        ParameterType returnType = selectedCommand.getCommand().getReturnType();
        if ((returnType != null && (returnType.getValueConverter() != null))) {
          String resultString = returnType.getValueConverter().convertToString(result);
          csm.setDataQualified(returnsAttribute, resultString);
        }
        else {
          if (result instanceof String) {
            csm.setDataQualified(returnsAttribute, (String)result);
View Full Code Here

TOP

Related Classes of org.eclipse.core.commands.ParameterType

Copyright © 2018 www.massapicom. 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.