Class TitleAreaDialogSupport

java.lang.Object
org.eclipse.jface.databinding.dialog.TitleAreaDialogSupport

public class TitleAreaDialogSupport extends Object
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 Details

    • create

      public static TitleAreaDialogSupport create(TitleAreaDialog dialog, DataBindingContext dbc)
      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 on
      dbc - the binding context to connect
      Returns:
      an instance of TitleAreaDialogSupport
    • setValidationMessageProvider

      public void setValidationMessageProvider(IValidationMessageProvider messageProvider)
      Sets the IValidationMessageProvider to use for providing the message text and message type to display on the title area dialog.
      Parameters:
      messageProvider - The IValidationMessageProvider 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.