Examples of addError()


Examples of org.dspace.app.xmlui.wing.element.Password.addError()

        Password password = list.addItem().addPassword("password");
        password.setLabel("password");
        if (help)
          password.setHelp("This is helpfull text.");
        if (error)
          password.addError("This field is in error.");
       
        // Hidden field
        Hidden hidden = list.addItem().addHidden("hidden");
        hidden.setLabel("Hidden");
        hidden.setValue("You can not see this.");
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Radio.addError()

              else
                actionSelect.addOption(i, Constants.actionText[i]);
            }
        }
        if (errors.contains("action_id"))
          actionSelect.addError(T_error_no_action);       
       
       
        // currently set group
        actionsList.addLabel(T_policy_currentGroup);
      Select groupSelect = actionsList.addItem().addSelect("group_id");
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Select.addError()

          groupSelect.addOption(true, group.getID(), group.getName());
        else
          groupSelect.addOption(group.getID(), group.getName());
      }
      if (errors.contains("group_id"))
        groupSelect.addError(T_error_no_group);
     
       
        // the search function
        actionsList.addLabel(T_label_search);
        Item searchItem = actionsList.addItem();
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.Text.addError()

    name.setLabel(T_name);
    name.setHelp(T_name_help);
    name.setValue(nameValue);
    name.setSize(35);
    if (errors.contains("short_description"))
      name.addError(T_name_error);
   
    Text mimeType = form.addItem().addText("mimetype");
    mimeType.setLabel(T_mimetype);
    mimeType.setHelp(T_mimetype_help);
    mimeType.setValue(mimetypeValue);
View Full Code Here

Examples of org.dspace.app.xmlui.wing.element.TextArea.addError()

        TextArea reason = form.addItem().addTextArea("reason");
        reason.setLabel(T_reason);
        reason.setRequired();
        reason.setSize(15, 50);
        if (this.errorFields.contains("reason"))
          reason.addError(T_reason_required);
     
        org.dspace.app.xmlui.wing.element.Item actions = form.addItem();
        actions.addButton("submit_reject").setValue(T_submit_reject);
        actions.addButton("submit_cancel").setValue(T_submit_cancel);
       
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.EvaluationResult.addError()

      if (thread.isSuspended() && ((JDIThread) thread).isInvokingMethod()
          || thread.isPerformingEvaluation()
          && evaluationDetail == DebugEvent.EVALUATION) {
        EvaluationResult result = new EvaluationResult(this,
            expression.getSnippet(), thread);
        result.addError(EvaluationEngineMessages.ASTEvaluationEngine_Cannot_perform_nested_evaluations);
        listener.evaluationComplete(result);
        return;
      }
      thread.queueRunnable(new EvalRunnable(
          (InstructionSequence) expression, thread, context,
View Full Code Here

Examples of org.eclipse.jdt.internal.debug.eval.ast.instructions.InstructionSequence.addError()

          mapper.getSource(receivingType, javaProject,
              frame.isStatic()).toCharArray(),
          mapper.getCompilationUnitName(), javaProject);
    } catch (CoreException e) {
      InstructionSequence expression = new InstructionSequence(snippet);
      expression.addError(e.getStatus().getMessage());
      return expression;
    }

    return createExpressionFromAST(snippet, mapper, unit);
  }
View Full Code Here

Examples of org.eclipse.ltk.core.refactoring.RefactoringStatus.addError()

                String locMessage = e.getLocalizedMessage();
                int i = 0;
                while (i < locMessage.length() && "\n\r".indexOf(locMessage.charAt(i)) == -1) { //$NON-NLS-1$
                    i++;
                }
                status.addError(locMessage.substring(0, i)); // only take first line
            }
        }
        setPageComplete(status);
    }
View Full Code Here

Examples of org.eurekastreams.commons.exceptions.ValidationException.addError()

        firstPage.setFromIndex(0);
        firstPage.setToIndex(9);
        firstPage.setPagedSet(defs);

        final ValidationException ve = new ValidationException();
        ve.addError("url", "its messed up");

        context.checking(new Expectations()
        {
            {
                oneOf(pluginDefMapper).findAll(firstPage.getFromIndex(), firstPage.getToIndex());
View Full Code Here

Examples of org.glassfish.hk2.api.MultiException.addError()

                try {
                    return ccl.loadClass(implementation);
                }
                catch (Throwable th2) {
                    MultiException me = new MultiException(th);
                    me.addError(th2);
                   
                    throw me;
                }
            }
           
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.