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
case CommandManager.PARAMETER_SEPARATOR_CHAR:
			case CommandManager.ESCAPE_CHAR:
				if (buffer == null) {
					buffer = new StringBuffer(rawText.substring(0, i));
				}
				buffer.append(CommandManager.ESCAPE_CHAR);
				buffer.append(c);
				break;
			default:
				if (buffer != null) {
					buffer.append(c);
				}
				break;
			}
		}
		if (buffer == null) {
			return rawText;
		}
		return buffer.toString();
	}
	/**
	 * Generates every possible combination of parameter values for the given
	 * parameters. Parameters values that cannot be initialized are just
	 * ignored. Optional parameters are considered.
	 * 
	 * @param startIndex
	 *            The index in the <code>parameters</code> that we should
	 *            process. This must be a valid index.
	 * @param parameters
	 *            The parameters in to process; must not be <code>null</code>.