// of DialogListBuilder to respond to text modification events as
// they happen. For example, a Dialog user may wish to provide
// validation error messages as invalid content is entered.
if (!(objectControl instanceof NonVisualValidatedObjectControl)) {
((Composite) objectControl).addListener(SWT.Modify,
new TypedListener(listener));
}
// The listener is also added to DialogListBuilder's list of
// listeners. ModifyText events are sent to the listeners in this
// list with the fireModifyTextEvent(Object) method.
listeners.add(listener);