Class NonEmptyValidator

    • Constructor Detail

      • NonEmptyValidator

        public NonEmptyValidator​(String fieldName)
        Constructor for NonEmptyValidator.
        Parameters:
        fieldName - validating field name, cannot be null, or need to override getErrorMessage()
    • Method Detail

      • validate

        public org.eclipse.core.runtime.IStatus validate​(Object value)
        Specified by:
        validate in interface org.eclipse.core.databinding.validation.IValidator
      • getErrorMessage

        protected String getErrorMessage()
        Returns validation error message.
        Returns:
        validation error message, never null