Mercurial > projects > dwt-addons
comparison dwtx/core/commands/IExecutionListenerWithChecks.d @ 3:6518c18a01f7
eclipse.core package without osgi dependencies
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 26 Mar 2008 00:57:19 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:a012107a911c | 3:6518c18a01f7 |
---|---|
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 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | |
13 | |
14 module dwtx.core.commands.IExecutionListenerWithChecks; | |
15 | |
16 import dwtx.core.commands.common.NotDefinedException; | |
17 import dwtx.core.commands.IExecutionListener; | |
18 import dwtx.core.commands.NotEnabledException; | |
19 | |
20 import dwt.dwthelper.utils; | |
21 | |
22 /** | |
23 * <p> | |
24 * A listener to the execution of commands. This listener will be notified if | |
25 * someone tries to execute a command and it is not enabled or not defined. The | |
26 * listener also be notified if a command is about to execute, and when that | |
27 * execution completes. It is not possible for the listener to prevent the | |
28 * execution, only to respond to it in some way. | |
29 * </p> | |
30 * <p> | |
31 * Clients may implement, but must not extend. | |
32 * </p> | |
33 * | |
34 * @since 3.2 | |
35 */ | |
36 public interface IExecutionListenerWithChecks : IExecutionListener { | |
37 | |
38 /** | |
39 * Notifies the listener that an attempt was made to execute a command that | |
40 * is not defined. | |
41 * | |
42 * @param commandId | |
43 * The identifier of command that is not defined; never | |
44 * <code>null</code> | |
45 * @param exception | |
46 * The exception that occurred; never <code>null</code>. | |
47 */ | |
48 public void notDefined(String commandId, NotDefinedException exception); | |
49 | |
50 /** | |
51 * Notifies the listener that an attempt was made to execute a command that | |
52 * is disabled. | |
53 * | |
54 * @param commandId | |
55 * The identifier of command that is not enabled; never | |
56 * <code>null</code> | |
57 * @param exception | |
58 * The exception that occurred; never <code>null</code>. | |
59 */ | |
60 public void notEnabled(String commandId, NotEnabledException exception); | |
61 } |