1 11 12 package org.eclipse.core.databinding.observable.value; 13 14 import org.eclipse.core.databinding.observable.IObservablesListener; 15 import org.eclipse.core.databinding.observable.ObservableEvent; 16 17 24 public class ValueChangeEvent extends ObservableEvent { 25 26 29 private static final long serialVersionUID = 2305345286999701156L; 30 31 static final Object TYPE = new Object (); 32 33 37 public ValueDiff diff; 38 39 47 public ValueChangeEvent(IObservableValue source, ValueDiff diff) { 48 super(source); 49 this.diff = diff; 50 } 51 52 57 public IObservableValue getObservableValue() { 58 return (IObservableValue) source; 59 } 60 61 protected void dispatch(IObservablesListener listener) { 62 ((IValueChangeListener) listener).handleValueChange(this); 63 } 64 65 protected Object getListenerType() { 66 return TYPE; 67 } 68 69 } 70 | Popular Tags |