This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The Widget class has a getLookup() method but not implements Lookup.Provider. This should be added even if the lookup is not used anywhere. Related discussion can be found at bug 209609 A uses I see for lookup is the same kind of uses as for a Node. 1) With a constructor where you can pass the lookup, you can for example provide actions, border, layout. 2) An action can use the layout to find out if a given functionality is supported by the widget (rotating it,...) Only thing to be changed in Widget.java is public class Widget implements Accessible { by public class Widget implements Accessible, Lookup.Provider { I can supply a patch if needed.
Created attachment 123721 [details] Proposed Patch Patch with change suggested by bcallebaut. Thank you!
Please review. Thanks.
(In reply to comment #2) > Please review. Thanks. For me it is fine
If there are no objections, I'll integrate on Thursday.
Integrated as http://hg.netbeans.org/core-main/rev/8607c24263cb
Integrated into 'main-golden', will be available in build *201212020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8607c24263cb User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #216581: Widget should implement Lookup.Provider
SPAM - Removed by Administrator