1 11 package org.eclipse.jface.util; 12 13 import java.util.EventObject ; 14 import org.eclipse.core.runtime.Assert; 15 16 33 public class PropertyChangeEvent extends EventObject { 34 35 39 private static final long serialVersionUID = 3256726173533811256L; 40 41 44 private String propertyName; 45 46 50 private Object oldValue; 51 52 56 private Object newValue; 57 58 66 public PropertyChangeEvent(Object source, String property, Object oldValue, 67 Object newValue) { 68 super(source); 69 Assert.isNotNull(property); 70 this.propertyName = property; 71 this.oldValue = oldValue; 72 this.newValue = newValue; 73 } 74 75 81 public Object getNewValue() { 82 return newValue; 83 } 84 85 92 public Object getOldValue() { 93 return oldValue; 94 } 95 96 106 public String getProperty() { 107 return propertyName; 108 } 109 } 110 | Popular Tags |