Community
Participate
Working Groups
The MenuManager should store itself in the menu widget it creates. This follows the pattern used my the other ContributionItems, and will allow the manager to be found from its widget. PW
Created attachment 196170 [details] MenuManager is data on its widget Store the MenuManager as data on its widget. PW
I need 2 commiters to review, and Boris, I need approval for you for this change. PW
Eric, could you please review? PW
Is this needed to support the Eclipse 4.x compatibility story?
(In reply to comment #4) > Is this needed to support the Eclipse 4.x compatibility story? Yes, bug 332246 (a P1). I've explored many options and this is the only way to get from the SWT Menu to something useful that first time. PW
(In reply to comment #5) > > Is this needed to support the Eclipse 4.x compatibility story? > > Yes, bug 332246 (a P1). I've explored many options and this is the only way to > get from the SWT Menu to something useful that first time. +1 from me.
I am okay with this on the condition that the string be changed to be something like "org.eclipse.ui.internal.managerKey" to prevent any potential clashing with downstream clients of getData(String) [this late in the cycle]. Patch seems innocuous enough otherwise.
Looks fine to me but adopting something more like Remy's suggestion for the key string makes sense (even though I'd be willing to bet money it wouldn't be an issue as is we may as well make the chances even smaller...;-).
Released with a longer key. PW
Boris, I assume you did want to set the normal +review flag.
(In reply to comment #10) > Boris, I assume you did want to set the normal +review flag. Indeed. Thanks!
In I20110523-0800 PW