Class ValidationMessageProvider
java.lang.Object
org.eclipse.jface.databinding.dialog.ValidationMessageProvider
- All Implemented Interfaces:
IValidationMessageProvider
Standard implementation of the
IValidationMessageProvider interface.- Since:
- 1.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMessage(ValidationStatusProvider statusProvider) Returns themessageof theIStatuscontained in the providedvalidationStatusProvideras is ornullif thevalidationStatusProvideris itselfnull.intgetMessageType(ValidationStatusProvider statusProvider) Returns the message type defined inIMessageProviderwhich naturally maps to theIStatus.getSeverity()of theIStatuscontained in the providedvalidationStatusProvider.
-
Constructor Details
-
ValidationMessageProvider
public ValidationMessageProvider()
-
-
Method Details
-
getMessage
Returns themessageof theIStatuscontained in the providedvalidationStatusProvideras is ornullif thevalidationStatusProvideris itselfnull.- Specified by:
getMessagein interfaceIValidationMessageProvider- Parameters:
statusProvider- theValidationStatusProviderfor which to provide a message text. May benull.- Returns:
- The validation message text for the given
validationStatusProvider. May benull.
-
getMessageType
Returns the message type defined inIMessageProviderwhich naturally maps to theIStatus.getSeverity()of theIStatuscontained in the providedvalidationStatusProvider.- Specified by:
getMessageTypein interfaceIValidationMessageProvider- Parameters:
statusProvider- theValidationStatusProviderfor which to provide a message type. May benull.- Returns:
- The validation message type for the given
validationStatusProvider.
-