| /******************************************************************************* |
| * Copyright (c) 2005, 2009 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial implementation |
| *******************************************************************************/ |
| package org.eclipse.epf.common.preferences; |
| |
| /** |
| * wrapper interface for property change event |
| * |
| * @author Jinhua Xi |
| * @since 1.5 |
| * |
| */ |
| public interface IPropertyChangeEventWrapper { |
| |
| /** |
| * Returns the new value of the property. |
| * |
| * @return the new value, or <code>null</code> if not known |
| * or not relevant (for instance if the property was removed). |
| */ |
| public Object getNewValue(); |
| |
| /** |
| * Returns the old value of the property. |
| * |
| * @return the old value, or <code>null</code> if not known |
| * or not relevant (for instance if the property was just |
| * added and there was no old value). |
| */ |
| public Object getOldValue(); |
| |
| /** |
| * Returns the name of the property that changed. |
| * <p> |
| * Warning: there is no guarantee that the property name returned |
| * is a constant string. Callers must compare property names using |
| * equals, not ==. |
| * </p> |
| * |
| * @return the name of the property that changed |
| */ |
| public String getProperty(); |
| } |