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
* {@link #getParameterizations(String, IParameter[])} to parse the
	 * serialized parameterized command string.
	 * 
	 * @param escapedText
	 *            the string to search for the index of <code>ch</code> in
	 * @param ch
	 *            a character to search for in <code>escapedText</code>
	 * @return the index of the first unescaped occurrence of the character in
	 *         <code>escapedText</code>, or <code>-1</code> if the
	 *         character does not occur unescaped.
	 * @see String#indexOf(int)
	 */
	private final int unescapedIndexOf(final String escapedText, final char ch) {
		int pos = escapedText.indexOf(ch);
		
		if (pos == 0) {
			return pos;
		}
		while (pos != -1) {
			
			if (escapedText.charAt(pos - 1) != ESCAPE_CHAR) {
				return pos;
			}
			
			pos = escapedText.indexOf(ch, pos + 1);
		}
		return pos;
	}
}