Package org.eclipse.core.commands.common

Examples of org.eclipse.core.commands.common.NotDefinedException


   *             if the parameter type is not currently defined
   */
  public final AbstractParameterValueConverter getValueConverter()
      throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot use getValueConverter() with an undefined ParameterType"); //$NON-NLS-1$
    }

    return parameterTypeConverter;
  }
View Full Code Here


   * @throws NotDefinedException
   *             if the parameter type is not currently defined
   */
  public boolean isCompatible(Object value) throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot use isCompatible() with an undefined ParameterType"); //$NON-NLS-1$
    }
    return isInstanceOf(value, type);
  }
View Full Code Here

   */
  public final String getHelpContextId(final Command command)
      throws NotDefinedException {
    // Check if the command is defined.
    if (!command.isDefined()) {
      throw new NotDefinedException("The command is not defined. " //$NON-NLS-1$
          + command.getId());
    }

    // Check the handler.
    final IHandler handler = command.getHandler();
View Full Code Here

      NotEnabledException, NotHandledException {
    firePreExecute(event);
    final IHandler handler = this.handler;

    if (!isDefined()) {
      final NotDefinedException exception = new NotDefinedException(
          "Trying to execute a command that is not defined. " //$NON-NLS-1$
              + getId());
      fireNotDefined(exception);
      throw exception;
    }
View Full Code Here

   * @throws NotDefinedException
   *             If the handle is not currently defined.
   */
  public final Category getCategory() throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot get the category from an undefined command. " //$NON-NLS-1$
              + id);
    }

    return category;
View Full Code Here

   * @since 3.2
   */
  public final IParameter getParameter(final String parameterId)
      throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot get a parameter from an undefined command. " //$NON-NLS-1$
              + id);
    }

    if (parameters == null) {
View Full Code Here

   * @throws NotDefinedException
   *             If the handle is not currently defined.
   */
  public final IParameter[] getParameters() throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot get the parameters from an undefined command. " //$NON-NLS-1$
              + id);
    }

    if ((parameters == null) || (parameters.length == 0)) {
View Full Code Here

   *             If the handle is not currently defined.
   * @since 3.2
   */
  public final ParameterType getReturnType() throws NotDefinedException {
    if (!isDefined()) {
      throw new NotDefinedException(
          "Cannot get the return type of an undefined command. " //$NON-NLS-1$
              + id);
    }

    return returnType;
View Full Code Here

     * @throws NotDefinedException
     *             if the scheme represented by this handle is not defined.
     */
    public final String getParentId() throws NotDefinedException {
        if (!defined) {
            throw new NotDefinedException(
                    "Cannot get the parent identifier from an undefined scheme. "  //$NON-NLS-1$
                + id);
        }

        return parentId;
View Full Code Here

    if (scheme == null) {
      throw new NullPointerException("Cannot activate a null scheme"); //$NON-NLS-1$
    }

    if ((scheme == null) || (!scheme.isDefined())) {
      throw new NotDefinedException(
          "Cannot activate an undefined scheme. " //$NON-NLS-1$
              + scheme.getId());
    }

    if (Util.equals(activeScheme, scheme)) {
View Full Code Here

TOP

Related Classes of org.eclipse.core.commands.common.NotDefinedException

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.