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