1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 *******************************************************************************/ 11 package org.eclipse.compare; 12 13 import org.eclipse.jface.util.IPropertyChangeListener; 14 15 /** 16 * Interface common to all objects that provide a means for registering 17 * for property change notification. 18 * <p> 19 * Clients may implement this interface. 20 * </p> 21 * 22 * @see org.eclipse.jface.util.IPropertyChangeListener 23 */ 24 public interface IPropertyChangeNotifier { 25 26 /** 27 * Adds a listener for property changes to this notifier. 28 * Has no effect if an identical listener is already registered. 29 * 30 * @param listener a property change listener 31 */ 32 void addPropertyChangeListener(IPropertyChangeListener listener); 33 34 /** 35 * Removes the given content change listener from this notifier. 36 * Has no effect if the identical listener is not registered. 37 * 38 * @param listener a property change listener 39 */ 40 void removePropertyChangeListener(IPropertyChangeListener listener); 41 } 42