Example usage for org.eclipse.jface.internal.databinding.swt SWTVetoableValueDecorator getWidget

List of usage examples for org.eclipse.jface.internal.databinding.swt SWTVetoableValueDecorator getWidget

Introduction

In this page you can find the example usage for org.eclipse.jface.internal.databinding.swt SWTVetoableValueDecorator getWidget.

Prototype

@Override
    public Widget getWidget() 

Source Link

Usage

From source file:org.switchyard.tools.ui.editor.impl.DomainPropertyTextValueChangeListener.java

License:Open Source License

@Override
public void handleValueChange(ValueChangeEvent e) {
    if (e.diff != null && !e.diff.getOldValue().equals(e.diff.getNewValue())) {
        SWTVetoableValueDecorator decorator = (SWTVetoableValueDecorator) e.getSource();
        Text textControl = (Text) decorator.getWidget();
        updateField(textControl);/* ww w . ja v  a2 s  . c om*/
        ErrorUtils.showErrorMessage(null);
    }
}