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 theIValidationMessageProviderinterface.- Since:
- 1.4
-
-
Constructor Summary
Constructors Constructor Description ValidationMessageProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage(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.
-
-
-
Method Detail
-
getMessage
public String getMessage(ValidationStatusProvider statusProvider)
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
public int getMessageType(ValidationStatusProvider statusProvider)
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.
-
-