Package org.eclipse.php.internal.ui.util

Examples of org.eclipse.php.internal.ui.util.ValidationStatus


    public TextFieldValidateListener(IStringValidator stringValidator) {
      this.stringValidator = stringValidator;
    }

    public void modifyText(ModifyEvent e) {
      ValidationStatus status = stringValidator
          .validate(((Text) e.widget).getText());
      if (!status.isOK()) {
        setErrorMessage(status.getError());
        setValid(false);
      } else {
        setErrorMessage(null);
        setValid(true);
      }
View Full Code Here


    public TextFieldValidateListener(IStringValidator stringValidator) {
      this.stringValidator = stringValidator;
    }

    public void modifyText(ModifyEvent e) {
      ValidationStatus status = stringValidator
          .validate(((Text) e.widget).getText());
      if (!status.isOK()) {
        getPreferencePage().setErrorMessage(status.getError());
        getPreferencePage().setValid(false);
      } else {
        getPreferencePage().setErrorMessage(null);
        getPreferencePage().setValid(true);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.util.ValidationStatus

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.