Project: Eclipse_Platform_UI
Bug 100816 [EditorMgmt] Default attribute ignored for content type bindings
Reported: 2005-06-20 09:51:33 | Status: verified fixed

3.1 RC3 Add the following editor extension to the Ant UI plug-in: <editor name="%AntEditor.name" icon="icons/full/obj16/ant_buildfile.gif" class="org.eclipse.ant.internal.ui.editor.AntEditor" contributorClass="org.eclipse.ant.internal.ui.editor.AntEditorActionContributor" id="org.eclipse.ant.ui.internal.editor.AntEditor2"> <contentTypeBinding contentTypeId="org.eclipse.jdt.core.javaSource" /> </editor> When you now start eclipse and open a Java file it opens the file with the and editor instead of using the Java editor which is marked to be the default editor. Add *.java to the File Association page and observe that the Java editor is not marked as default editor.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorRegistry.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IEditorRegistryTest.java