Bug 204458 [Commands] Allow menu and toolbars to fire execution events
Keybindings will currently fire execution events when executing actions from the action framework. i.e. IActions with their actionDefinitionId set and IActionDelegates with the definitionId attribute in their action contributions. But it would be nice if selecting the menu or tool item would also fire the equivalent events. PW
bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/CommandManager.java
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
import org.eclipse.core.commands.common.HandleObjectManager;
import org.eclipse.core.commands.common.NotDefinedException;
import org.eclipse.core.runtime.ListenerList;
/**
 * <p>
 * A central repository for commands -- both in the defined and undefined
 * states. Commands can be created and retrieved using this manager. It is
 * possible to listen to changes in the collection of commands by attaching a
 * listener to the manager.
 * </p>
 * 
 * @see CommandManager#getCommand(String)
 * @since 3.1
 */
public final class CommandManager extends HandleObjectManager implements
		ICategoryListener, ICommandListener, IParameterTypeListener {
	/**
	 * A listener that forwards incoming execution events to execution listeners
	 * on this manager. The execution events will come from any command on this
	 * manager.
	 * 
	 * @since 3.1
	 */
	private final class ExecutionListener implements