Class ValidationMessageProvider
- java.lang.Object
-
- org.eclipse.jface.databinding.dialog.ValidationMessageProvider
-
- All Implemented Interfaces:
IValidationMessageProvider
public class ValidationMessageProvider extends Object implements IValidationMessageProvider
Standard implementation of theIValidationMessageProvider
interface.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description ValidationMessageProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage(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
.
-
-
-
Method Detail
-
getMessage
public String getMessage(ValidationStatusProvider statusProvider)
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
public int getMessageType(ValidationStatusProvider statusProvider)
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
.
-
-