List of usage examples for org.eclipse.jface.internal.databinding.swt WidgetListenerUtil asyncRemoveListener
public static void asyncRemoveListener(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 synchronized void dispose() { if (control != null) { WidgetListenerUtil.asyncRemoveListener(control, SWT.KeyUp, this); WidgetListenerUtil.asyncRemoveListener(control, SWT.FocusOut, this); WidgetListenerUtil.asyncRemoveListener(control, SWT.FocusIn, this); WidgetListenerUtil.asyncRemoveListener(control, SWT.DefaultSelection, this); WidgetListenerUtil.asyncRemoveListener(control, SWT.Selection, this); WidgetListenerUtil.asyncRemoveListener(control, SWT.Dispose, this); control = null;// w w w . j a v a 2 s .co m target.removeDisposeListener(this); ((IObservableValue) target).removeValueChangeListener(this); } }
From source file:org.switchyard.tools.ui.editor.databinding.SWTValueUpdater.java
License:Open Source License
private synchronized void dispose() { if (_control != null) { WidgetListenerUtil.asyncRemoveListener(_control, SWT.KeyUp, this); WidgetListenerUtil.asyncRemoveListener(_control, SWT.FocusOut, this); WidgetListenerUtil.asyncRemoveListener(_control, SWT.FocusIn, this); WidgetListenerUtil.asyncRemoveListener(_control, SWT.DefaultSelection, this); WidgetListenerUtil.asyncRemoveListener(_control, SWT.Selection, this); WidgetListenerUtil.asyncRemoveListener(_control, SWT.Dispose, this); _control = null;/* w w w . j a v a 2s . c om*/ _target.removeDisposeListener(this); ((IObservableValue) _target).removeValueChangeListener(this); } }