public synchronized void dispose() { unmodifiableList = null; super.dispose(); } }
/** * Returns an observable list that contains the same elements as the given * list, and fires the same events as the given list, but can be disposed of * without disposing of the wrapped list. * * @param target * the list to wrap * @return a disposable proxy for the given observable list * @since 1.1 */ public static IObservableList proxyObservableList(IObservableList target) { return new DecoratingObservableList(target, false); }
public synchronized void addListChangeListener(IListChangeListener listener) { addListener(ListChangeEvent.TYPE, listener); }
public void add(int index, Object o) { checkRealm(); decorated.add(index, o); }
/** * Called whenever a ListChangeEvent is received from the decorated * observable. By default, this method fires the list 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 handleListChange(final ListChangeEvent event) { fireListChange(event.diff); }
protected void fireListChange(ListDiff diff) { // fire general change event first super.fireChange(); fireEvent(new ListChangeEvent(this, diff)); }
public Object remove(int index) { checkRealm(); return decorated.remove(index); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
public Object set(int index, Object element) { checkRealm(); return decorated.set(index, element); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
public boolean addAll(int index, Collection c) { checkRealm(); return decorated.addAll(index, c); }
@Override public synchronized void dispose() { this.propertyDescriptor = null; super.dispose(); }
public Object move(int oldIndex, int newIndex) { checkRealm(); return decorated.move(oldIndex, newIndex); }
@Override public synchronized void dispose() { this.eStructuralFeature = null; super.dispose(); }
@Override public synchronized void dispose() { WidgetListenerUtil.asyncRemoveListener(widget, SWT.Dispose, disposeListener); this.widget = null; super.dispose(); }