KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > compare > IContentChangeNotifier


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 /**
14  * Interface common to all objects that provide a means for registering
15  * for content change notification.
16  * <p>
17  * Clients may implement this interface.
18  * </p>
19  *
20  * @see IContentChangeListener
21  */

22 public interface IContentChangeNotifier {
23     
24     /**
25      * Adds a content change listener to this notifier.
26      * Has no effect if an identical listener is already registered.
27      *
28      * @param listener a content changed listener
29      */

30     void addContentChangeListener(IContentChangeListener listener);
31     
32     /**
33      * Removes the given content changed listener from this notifier.
34      * Has no effect if the listener is not registered.
35      *
36      * @param listener a content changed listener
37      */

38     void removeContentChangeListener(IContentChangeListener listener);
39 }
40
Popular Tags