KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > commands > IStateListener


1 /*******************************************************************************
2  * Copyright (c) 2005, 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
12 package org.eclipse.core.commands;
13
14 /**
15  * <p>
16  * A listener to changes in some state.
17  * </p>
18  * <p>
19  * Clients may implement, but must not extend this interface.
20  * </p>
21  *
22  * @since 3.2
23  */

24 public interface IStateListener {
25
26     /**
27      * Handles a change to the value in some state.
28      *
29      * @param state
30      * The state that has changed; never <code>null</code>. The
31      * value for this state has been updated to the new value.
32      * @param oldValue
33      * The old value; may be anything.
34      */

35     public void handleStateChange(State state, Object JavaDoc oldValue);
36 }
37
Popular Tags