Class TitleAreaDialogSupport
java.lang.Object
org.eclipse.jface.databinding.dialog.TitleAreaDialogSupport
Connects the validation result from the given data binding context to the
given TitleAreaDialog, updating the dialog's error message accordingly.
- Since:
- 1.3
- Restriction:
- This class is not intended to be subclassed by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TitleAreaDialogSupport
create
(TitleAreaDialog dialog, DataBindingContext dbc) Connect the validation result from the given data binding context to the given TitleAreaDialog.void
dispose()
Disposes of this title area dialog support object, removing any listeners it may have attached.void
setValidationMessageProvider
(IValidationMessageProvider messageProvider) Sets theIValidationMessageProvider
to use for providing the message text and message type to display on the title area dialog.
-
Method Details
-
create
Connect the validation result from the given data binding context to the given TitleAreaDialog. The page's error message will not be set at time of creation, ensuring that the dialog does not show an error right away. Upon any validation result change, the dialog's error message will be updated according to the current validation result.- Parameters:
dialog
- the dialog to show validation errors ondbc
- the binding context to connect- Returns:
- an instance of TitleAreaDialogSupport
-
setValidationMessageProvider
Sets theIValidationMessageProvider
to use for providing the message text and message type to display on the title area dialog.- Parameters:
messageProvider
- TheIValidationMessageProvider
to use for providing the message text and message type to display on the title area dialog.- Since:
- 1.4
-
dispose
public void dispose()Disposes of this title area dialog support object, removing any listeners it may have attached.
-