@Override public synchronized void dispose() { this.propertyDescriptor = null; super.dispose(); }
/** * Returns an observable value that contains the same value as the given * observable, and fires the same events as the given observable, but can be * disposed of without disposing of the wrapped observable. * * @param target * the observable value to wrap * @return a disposable proxy for the given observable value. * @since 1.2 */ public static IObservableValue proxyObservableValue(IObservableValue target) { return new DecoratingObservableValue(target, false); }
public synchronized void addValueChangeListener( IValueChangeListener listener) { addListener(ValueChangeEvent.TYPE, listener); }
/** * Called whenever a ValueChangeEvent is received from the decorated * observable. By default, this method fires the value change event again, * with the decorating observable as the event source. Subclasses may * override to provide different behavior. * * @param event * the change event received from the decorated observable */ protected void handleValueChange(final ValueChangeEvent event) { fireValueChange(event.diff); }
public void setValue(Object value) { checkRealm(); decorated.setValue(value); }
protected void fireValueChange(ValueDiff diff) { // fire general change event first super.fireChange(); fireEvent(new ValueChangeEvent(this, diff)); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
@Override public synchronized void dispose() { this.propertyDescriptor = null; super.dispose(); }
@Override public synchronized void dispose() { if (widget != null) { WidgetListenerUtil.asyncRemoveListener(widget, SWT.Dispose, this); widget = null; } super.dispose(); } }
@Override public synchronized void dispose() { if (viewer != null) { Control control = viewer.getControl(); if (control != null && !control.isDisposed()) { control.removeListener(SWT.Dispose, this); } viewer = null; } super.dispose(); } }