Community
Participate
Working Groups
In 3.4, and 3.5 there is a problem when you have multiple handler extensions defined. The extension editor only shows (handler) in the master pane rather than showing the name of the handler. This is a real usability problem for people who have even a modest number of handlers defined. Even the PDE help has a screen shot that shows this condition. While this behaviour may be on purpose, Chris indicates that there is something about taking the first attribute in the schema and displaying it. So you may want to punt to the definer of the handler extension point but either way, this is a real problem for people trying to develop with handlers.
Created attachment 174774 [details] Proposed patch in org.eclipse.ui/schema/handlers.exsd I believe this will do the trick. It is untested. Legal Message: I, Patrick Tassé, declare that I developed attached code from scratch, without referencing any 3rd party materials except material licensed under the EPL. I am authorized by my employer to make this contribution under the EPL.
Created attachment 174782 [details] patch Updated patch. The label attribute has to go inside the <annotation> tag.
Moving to Platform UI, patch applies to org.eclipse.ui bundle.
I looked into applying this patch, and I believe there has been an update in PDE. If I open the PDE editor Extensions org.eclipse.ui.handlers it now shows them as "commandId (handler)" Patrick, can you confirm? PW
Yes, it seems it's fixed in 3.7.2. I'm still using 3.7.1...
If you'd still like me to apply it, I'll go ahead, but it won't show up until 3.8/4.2. PW
It's been so long, I forgot how to reproduce the problem... Actually the commandId is shown in the tree only if the class is not set (empty). Once you define a class, then the tree starts showing only "(handler)". At least it still does in 3.7.2. So perhaps the patch is still required (if you can test that it solves the issue).
(In reply to comment #7) > Actually the commandId is shown in the tree only if the class is not set > (empty). > OK, sounds like it still needs to be done. Thanx Patrick, when we get an I build I'll ask you to have a quick look to verify it. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=f79200390abc71fd14de022f816c5b15ad4bd025 PW
verified in: Version: 4.2.0 Build id: I20120430-1800