Community
Participate
Working Groups
Build Identifier: I20100608-0911 In org.eclipse.uml2.diagram.activity and the other diagram plugins the editor is registered twice with exact the same editor, but different extensions. This leads to duplicate entries in editor list, if you select "open with -> Other" on files. Each editor should only be registered once and the file extension contains a comma separated list of all used extensions. Reproducible: Always Steps to Reproduce: 1.Install uml2 2.Right click on a file 3.Select "Open With... -> Other" 4.See "Activity Diagram Editor" twice
Created attachment 178499 [details] propsed patch for this bug For me this is also a bug. I created this patch to fix this. The patch only fixes a custom template, so regeneration of all diagram plugins is needed.
Comment on attachment 178499 [details] propsed patch for this bug Proposed patch just reverts the change described in the https://bugs.eclipse.org/bugs/show_bug.cgi?id=230873#c2 Just in case, we will use the list of extensions, just moving EXPAND FOREACH into the extensions="..." value.
Comment on attachment 178499 [details] propsed patch for this bug My bad, this patch was good enough. Missed the fact that we are already storing the comma-separated list in the fileExtensions. Reviewed, to be committed.
Patch committed with minor changes. In particular, in order to make the plugin.xml merge-able, we have added id="generated-editor" into the affected extension declaration.