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 25 public class ValueChangingEvent extends ObservableEvent { 26 27 30 private static final long serialVersionUID = 2305345286999701156L; 31 32 static final Object TYPE = new Object (); 33 34 38 public ValueDiff diff; 39 40 44 public boolean veto = false; 45 46 54 public ValueChangingEvent(IObservableValue source, ValueDiff diff) { 55 super(source); 56 this.diff = diff; 57 } 58 59 62 public IObservableValue getObservableValue() { 63 return (IObservableValue) source; 64 } 65 66 protected void dispatch(IObservablesListener listener) { 67 ((IValueChangingListener) listener).handleValueChanging(this); 68 } 69 70 protected Object getListenerType() { 71 return TYPE; 72 } 73 74 } 75 | Popular Tags |