KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > compare > structuremergeviewer > ICompareInputChangeListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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.structuremergeviewer;
12
13 /**
14  * Listener that gets informed if one (or more)
15  * of the three sides of an <code>ICompareInput</code> object changes its value.
16  * <p>
17  * For example when accepting an incoming addition
18  * the (non-null) left side of an <code>ICompareInput</code>
19  * is copied to the right side (which was <code>null</code>).
20  * This triggers a call to <code>compareInputChanged</code> of registered
21  * <code>ICompareInputChangeListener</code>.
22  * <p>
23  * Note however, that listener are not informed if the content of one of the sides changes.
24  * <p>
25  * Clients may implement this interface. It is also implemented by viewers that take
26  * an <code>ICompareInput</code> as input.
27  * </p>
28  */

29 public interface ICompareInputChangeListener {
30     
31     /**
32      * Called whenever the value (not the content) of one or more of the three sides
33      * of a <code>ICompareInput</code> has changed.
34      *
35      * @param source the <code>ICompareInput</code> that has changed
36      */

37     void compareInputChanged(ICompareInput source);
38 }
39
Popular Tags