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
private final Map createFilteredContextTreeFor(final Set contextIds) {
		
		boolean dialog = false;
		boolean window = false;
		Iterator contextIdItr = contextIds.iterator();
		while (contextIdItr.hasNext()) {
			final String contextId = (String) contextIdItr.next();
			if (IContextIds.CONTEXT_ID_DIALOG.equals(contextId)) {
				dialog = true;
				continue;
			}
			if (IContextIds.CONTEXT_ID_WINDOW.equals(contextId)) {
				window = true;
				continue;
			}
		}
		/*
		 * Remove all context identifiers for contexts whose parents are dialog
		 * or window, and the corresponding dialog or window context is not
		 * active.
		 */
		try {
			contextIdItr = contextIds.iterator();
			while (contextIdItr.hasNext()) {
				String contextId = (String) contextIdItr.next();
				Context context = contextManager.getContext(contextId);
				String parentId = context.getParentId();
				while (parentId != null) {
					if (IContextIds.CONTEXT_ID_DIALOG.equals(parentId)) {
						if (!dialog) {