/**
  * Validates the current input
  *
  * @since 3.3
  */
 private void validateInput() {
   String errorMessage = null;
   if (fValidator != null) {
     errorMessage = fValidator.isValid(fTextWidget.getText());
   }
   setErrorMessage(errorMessage);
 }
 protected void validateInput() {
   String errorMessage = null;
   if (validator != null) {
     errorMessage = validator.isValid(text.getText());
   }
   setErrorMessage(errorMessage);
 }
Example #3
0
 /**
  * Validates the input.
  *
  * <p>The default implementation of this framework method delegates the request to the supplied
  * input validator object; if it finds the input invalid, the error message is displayed in the
  * dialog's message line. This hook method is called whenever the text changes in the input field.
  */
 protected void validateInput() {
   String errorMessage = null;
   if (validator != null) {
     errorMessage = validator.isValid(text.getText());
   }
   // Bug 16256: important not to treat "" (blank error) the same as null
   // (no error)
   setErrorMessage(errorMessage);
 }
 /**
  * Method validateEmptyInput.
  *
  * @param aText Text
  * @return String
  */
 private String validateEmptyInput(String aText) {
   return fValidator.isValid(aText);
 }