78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2007 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
|
|
12 module org.eclipse.core.databinding.observable.IChangeListener;
|
|
13
|
|
14 import java.lang.all;
|
|
15
|
|
16 import org.eclipse.core.databinding.observable.list.IListChangeListener;
|
|
17 import org.eclipse.core.databinding.observable.map.IMapChangeListener;
|
|
18 import org.eclipse.core.databinding.observable.set.ISetChangeListener;
|
|
19 import org.eclipse.core.databinding.observable.value.IValueChangeListener;
|
|
20
|
|
21 /**
|
|
22 * Listener for generic change events. Note that the change events do not carry
|
|
23 * information about the change, they only specify the affected observable. To
|
|
24 * listen for specific change events, use more specific change listeners.
|
|
25 *
|
|
26 * @see IValueChangeListener
|
|
27 * @see IListChangeListener
|
|
28 * @see ISetChangeListener
|
|
29 * @see IMapChangeListener
|
|
30 *
|
|
31 * @since 1.0
|
|
32 */
|
|
33 public interface IChangeListener : IObservablesListener {
|
|
34
|
|
35 /**
|
|
36 * Handle a generic change to the given observable. The given event object
|
|
37 * must only be used locally in this method because it may be reused for
|
|
38 * other change notifications.
|
|
39 *
|
|
40 * @param event
|
|
41 */
|
|
42 public void handleChange(ChangeEvent event);
|
|
43
|
|
44 }
|