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
-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(ValidationStatusProvider statusProvider) Returns themessage
of theIStatus
contained in the providedvalidationStatusProvider
as is ornull
if thevalidationStatusProvider
is itselfnull
.int
getMessageType
(ValidationStatusProvider statusProvider) Returns the message type defined inIMessageProvider
which naturally maps to theIStatus.getSeverity()
of theIStatus
contained in the providedvalidationStatusProvider
.
-
Constructor Details
-
ValidationMessageProvider
public ValidationMessageProvider()
-
-
Method Details
-
getMessage
Returns themessage
of theIStatus
contained in the providedvalidationStatusProvider
as is ornull
if thevalidationStatusProvider
is itselfnull
.- Specified by:
getMessage
in interfaceIValidationMessageProvider
- Parameters:
statusProvider
- theValidationStatusProvider
for 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 inIMessageProvider
which naturally maps to theIStatus.getSeverity()
of theIStatus
contained in the providedvalidationStatusProvider
.- Specified by:
getMessageType
in interfaceIValidationMessageProvider
- Parameters:
statusProvider
- theValidationStatusProvider
for which to provide a message type. May benull
.- Returns:
- The validation message type for the given
validationStatusProvider
.
-