Bug 87222 [KeyBindings] preference page: Duplicate bindings masked by the preference page
Version: 3.1.0 Build id: I20050301-1230 After installing Web Tools I noticed that a few of the java editing keybindings disappeared: - Select Enclosing Element - Restore Selection - Select Next element - Select Previous element - probably some others WTP defines its own versions of these commands (same name, different ID) but assigns the key bindings to a "structued text editor scope". The Java key bindings are in a "Java editing scope". WTP should probably use the existing commands (they would have to be pushed down first), but I don't think it was right for the Java key bindings to be removed/hidden.
bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/BindingManager.java
throw new NullPointerException(
					"A binding manager requires a context manager"); 
		}
		if (commandManager == null) {
			throw new NullPointerException(
					"A binding manager requires a command manager"); 
		}
		this.contextManager = contextManager;
		contextManager.addContextManagerListener(this);
		this.commandManager = commandManager;
	}
	/**
	 * <p>
	 * Adds a single new binding to the existing array of bindings. If the array is
	 * currently <code>null</code>, then a new array is created and this
	 * binding is added to it. This method does not detect duplicates.
	 * </p>
	 * <p>
	 * This method completes in amortized <code>O(1)</code>.
	 * </p>
	 * 
	 * @param binding
	 *            The binding to be added; must not be <code>null</code>.
	 */
	public final void addBinding(final Binding binding) {
		if (binding == null) {
			throw new NullPointerException("Cannot add a null binding"); 
		}
		if (bindings == null) {
			bindings = new Binding[1];