Your browser does not support JavaScript and this site utilizes JavaScript to build content and provide links to additional information. You should either enable JavaScript in your browser settings or use a browser that supports JavaScript in order to take full advantage of this site.

1 /*******************************************************************************2 * Copyright (c) 2005, 2006 IBM Corporation and others.3 * All rights reserved. This program and the accompanying materials4 * are made available under the terms of the Eclipse Public License v1.05 * which accompanies this distribution, and is available at6 * http://www.eclipse.org/legal/epl-v10.html7 *8 * Contributors:9 * IBM Corporation - initial API and implementation10 *******************************************************************************/11 12 package org.eclipse.core.commands;13 14 importorg.eclipse.core.commands.common.NotDefinedException;15 16 /**17 * <p>18 * A listener to the execution of commands. This listener will be notified if19 * someone tries to execute a command and it is not enabled or not defined. The20 * listener also be notified if a command is about to execute, and when that21 * execution completes. It is not possible for the listener to prevent the22 * execution, only to respond to it in some way.23 * </p>24 * <p>25 * Clients may implement, but must not extend.26 * </p>27 * 28 * @since 3.229 */30 publicinterface IExecutionListenerWithChecks extendsIExecutionListener {31 32 /**33 * Notifies the listener that an attempt was made to execute a command that34 * is not defined.35 * 36 * @param commandId37 * The identifier of command that is not defined; never38 * <code>null</code>39 * @param exception40 * The exception that occurred; never <code>null</code>.41 */42 publicvoid notDefined(String commandId, NotDefinedException exception);43 44 /**45 * Notifies the listener that an attempt was made to execute a command that46 * is disabled.47 * 48 * @param commandId49 * The identifier of command that is not enabled; never50 * <code>null</code>51 * @param exception52 * The exception that occurred; never <code>null</code>.53 */54 publicvoid notEnabled(String commandId, NotEnabledException exception);55 }56