| Summary: | Inconvenient representation of children of org.eclipse.ui.activities, org.eclipse.ui.handlers nodes when editing a plugin.xml | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Dennis Fridlyand <Dzianis.Frydliand> | ||||||
| Component: | UI | Assignee: | Curtis Windatt <curtis.windatt.public> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | curtis.windatt.public, pwebster, remy.suen | ||||||
| Version: | 3.7 | Keywords: | contributed | ||||||
| Target Milestone: | 3.8 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Dennis Fridlyand
Created attachment 203487 [details]
org.eclipse.ui.handlers
Illustration of the issue
To add a new optional attribute to the extension would require changes from the extension point owner (eclipse ui), not PDE. One other option is to take an existing attribute and have PDE use that as for the label if it can't find a name/id. I'm not sure exactly where in PDE that logic exists, but I can track it down if you are interested in pursuing that solution. Please, track it down because all our team is interested to get a solution for this issue. Is there any solution for the described issue? The label is figured out in ExtensionsSection#resolveObjectName() in the org.eclipse.pde.ui plug-in. The PDE team doesn't have time to work on this, but we will review any community contributions. Created attachment 204062 [details]
patch 1
I propose to add "commonId" element to ExtensionsSection#COMMON_LABEL_PROPERTIES array, because it's a required attribute for a handler. This solution is suitable for our development team.
The patch is provided (based on version 1.79 of ExtensionsSection.java)
Thanks for the patch. While looking more closely at the code, there is no drawback to adding a few more entries to the array of common attributes for labelling. Therefore I added in activityId as well for the handlers extension. Fixed in master branch. This change got put in while I was working on fixing the PDE menu contributions. When I ended up trying to work with them in a build without this trivial change I found it way more frustrating. In the future we should look at what other common label properties we can add for extensions. Verified in I20111021-1625 |