List of usage examples for org.eclipse.jface.internal.databinding.swt WidgetListenerUtil asyncAddListener
public static void asyncAddListener(final Widget widget, final int event, final Listener listener)
From source file:org.jboss.mapper.eclipse.internal.util.SWTValueUpdater.java
License:Open Source License
private void addListeners() { WidgetListenerUtil.asyncAddListener(control, SWT.KeyUp, this); WidgetListenerUtil.asyncAddListener(control, SWT.FocusOut, this); WidgetListenerUtil.asyncAddListener(control, SWT.FocusIn, this); WidgetListenerUtil.asyncAddListener(control, SWT.DefaultSelection, this); WidgetListenerUtil.asyncAddListener(control, SWT.Selection, this); WidgetListenerUtil.asyncAddListener(control, SWT.Dispose, this); target.addDisposeListener(this); ((IObservableValue) target).addValueChangeListener(this); }
From source file:org.switchyard.tools.ui.editor.databinding.SWTValueUpdater.java
License:Open Source License
private void addListeners() { WidgetListenerUtil.asyncAddListener(_control, SWT.KeyUp, this); WidgetListenerUtil.asyncAddListener(_control, SWT.FocusOut, this); WidgetListenerUtil.asyncAddListener(_control, SWT.FocusIn, this); WidgetListenerUtil.asyncAddListener(_control, SWT.DefaultSelection, this); WidgetListenerUtil.asyncAddListener(_control, SWT.Selection, this); WidgetListenerUtil.asyncAddListener(_control, SWT.Dispose, this); _target.addDisposeListener(this); ((IObservableValue) _target).addValueChangeListener(this); }