Bug 187812 [KeyBindings] IBindingService.getActiveBindingsFor(ParameterizedCommand) does not work
I20070517-1700. IBindingService.getActiveBindingsFor(ParameterizedCommand) does not work i.e. returns an empty array. Test Case: 1. in org.eclipse.jdt.internal.ui.preferences.CodeAssistAdvancedConfigurationBlock change getKeyboardShortcut(...) to use getActiveBindingsFor 2. start target 3. define a key binding for e.g. the 4. go to Java > Editor > Content Assist > Advanced observe: the key binding is not shown
bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/ParameterizedCommand.java
*     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.core.commands;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.eclipse.core.commands.common.NotDefinedException;
import org.eclipse.core.internal.commands.util.Util;
/**
 * <p>
 * A command that has had one or more of its parameters specified. This class
 * serves as a utility class for developers that need to manipulate commands
 * with parameters. It handles the behaviour of generating a parameter map and a
 * human-readable name.
 * </p>
 * 
 * @since 3.1
 */
public final class ParameterizedCommand implements Comparable {
	/**
	 * The constant integer hash code value meaning the hash code has not yet
	 * been computed.
	 */
	private static final int HASH_CODE_NOT_COMPUTED = -1;
	/**
	 * A factor for computing the hash code for all parameterized commands.