Community
Participate
Working Groups
I created the Sample XML editor and lauched eclipse. When I try and open my random XML file (test.xml) it opens in the text editor, not the sample XML editor we've provided. The XML editor *is* available if you go to "Open With". It seems that just having the content type descriptions override the editor extension declaration. PW
The bug is in EditorRegistry.findRelatedObjects: it correctly collects the xml editor but also adds all the editors that match the supertype of XML content type. Unfortunately it adds the editors for the supertypes to the list before it adds the ones bound to the extension. The whole method could deserve some polish ;-)
Mass update - removing 3.4 target. This was one of the bugs I marked for investigation (and potential fixing) in 3.4 but I ran out of time. Please ping on the bug if fixing it would be really important for 3.4, and does not require API changes or feature work.
Remy is now responsible for watching the [EditorMgmt] component area.
Created attachment 156569 [details] EditorRegistry patch v1 This patch corrects the order of the collection with a test. I didn't put the test directly in IEditorRegistryTest since I didn't want to be contributing an XML editor in the org.eclipse.ui.tests bundle directly as this can cause undesired effects when opening XML files in the runtime workspace.
(In reply to comment #4) > Created an attachment (id=156569) [details] > EditorRegistry patch v1 Patch released to HEAD >20100119.
Verified on I20100125-1800.
Had to roll this back for bug 302297.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.