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
public final Map getParameterMap() {
		if ((parameterizations == null) || (parameterizations.length == 0)) {
			return Collections.EMPTY_MAP;
		}
		final Map parameterMap = new HashMap();
		for (int i = 0; i < parameterizations.length; i++) {
			final Parameterization parameterization = parameterizations[i];
			parameterMap.put(parameterization.getParameter().getId(),
					parameterization.getValue());
		}
		return parameterMap;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	public final int hashCode() {
		if (hashCode == HASH_CODE_NOT_COMPUTED) {
			hashCode = HASH_INITIAL * HASH_FACTOR + Util.hashCode(command);
			hashCode = hashCode * HASH_FACTOR
					+ Util.hashCode(parameterizations);
			if (hashCode == HASH_CODE_NOT_COMPUTED) {
				hashCode++;
			}
		}
		return hashCode;
	}
	/**
	 * Returns a {@link String} containing the command id, parameter ids and
	 * parameter values for this {@link ParameterizedCommand}. The returned
	 * {@link String} can be stored by a client and later used to reconstruct an