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 12 package org.eclipse.ui.contexts; 13 14 /** 15 * An instance of this interface can be used by clients to receive notification 16 * of changes to one or more instances of <code>IContext</code>. 17 * <p> 18 * This interface may be implemented by clients. 19 * </p> 20 * 21 * @since 3.0 22 * @see org.eclipse.ui.contexts.IContext#addContextListener(IContextListener) 23 * @see org.eclipse.ui.contexts.IContext#removeContextListener(IContextListener) 24 * @deprecated Please use the "org.eclipse.core.commands" plug-in instead. 25 * @see org.eclipse.core.commands.contexts.IContextListener 26 */ 27 public interface IContextListener { 28 29 /** 30 * Notifies that one or more properties of an instance of 31 * <code>IContext</code> have changed. Specific details are described in 32 * the <code>ContextEvent</code>. 33 * 34 * @param contextEvent 35 * the context event. Guaranteed not to be <code>null</code>. 36 */ 37 void contextChanged(ContextEvent contextEvent); 38 } 39