1 11 12 package org.eclipse.core.databinding.observable.list; 13 14 import org.eclipse.core.databinding.observable.IObservablesListener; 15 import org.eclipse.core.databinding.observable.ObservableEvent; 16 17 23 public class ListChangeEvent extends ObservableEvent { 24 25 28 private static final long serialVersionUID = -9154315534258776672L; 29 30 static final Object TYPE = new Object (); 31 32 36 public ListDiff diff; 37 38 46 public ListChangeEvent(IObservableList source, ListDiff diff) { 47 super(source); 48 this.diff = diff; 49 } 50 51 56 public IObservableList getObservableList() { 57 return (IObservableList) getSource(); 58 } 59 60 protected void dispatch(IObservablesListener listener) { 61 ((IListChangeListener) listener).handleListChange(this); 62 } 63 64 protected Object getListenerType() { 65 return TYPE; 66 } 67 68 } 69 | Popular Tags |