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