Eclipse Platform
Release 3.6

org.eclipse.jface.databinding.dialog
Class TitleAreaDialogSupport

java.lang.Object
  extended by 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 Summary
static 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 the IValidationMessageProvider to use for providing the message text and message type to display on the title area dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 -
dbc -
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.


Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.