Community
Participate
Working Groups
We should add support for comparing plugin.xml files.
Created attachment 71445 [details] Initial patch This is an initial cut at this. It is mostly complete but has an issue if changes are made in the editor and saved. This will cause the images that are used in the UI to be disposed. There are a few other things worth noting: 1) The extentions for the content viewer in PLUGIN and PLUGIN2. The first is just a place holder (see next point) and the second is used to match file segments when the user chooses an entry in the structure view. 2) The extenstion for the structure viewer is PLUGIN. I included this because the schema requires that an extension be provided. We should investigate removing the restriction. 3) I needed to modify the partitioning used by the plugin xml source viewer. It was using the default partition which is dangerous. I think I updated all the necessary places but this should be checked again.
Created attachment 74455 [details] Patch that fixes the image disposed error
The patch is ready so I'm moving this to PDE/UI to have a look. This patch uses the same syntax highlighting and outline for compare that the manifest editor uses for plugin.xml files (and, as a bonus, many of the unused XML example classes are removed). The image disposed error mentioned in comment 1 is fixed. Points 1 and 2 in that comment are for information purposes but you may want to look into point 3 to make sure I didn't miss all the references to the default partitioner.
*** Bug 197671 has been marked as a duplicate of this bug. ***
*** Bug 153873 has been marked as a duplicate of this bug. ***
Thanks Michael. It is so pretty. I released the patch with the following modifications: 1. a couple of references to the old partitioning. 2. fixed up the compare/merge font by declaring a font definition. 3. NLS'd some strings.
The compare does not currently work on fragment.xml files. Opened bug 197905 for that.
adding noteworthy keyword