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.

Bug 216581 - Widget should implement Lookup.Provider
Summary: Widget should implement Lookup.Provider
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 7.1.2
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Havlin
Depends on:
Reported: 2012-08-09 10:54 UTC by bcallebaut
Modified: 2012-12-09 06:17 UTC (History)
1 user (show)

See Also:
Exception Reporter:

Proposed Patch (2.33 KB, patch)
2012-08-30 09:01 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description bcallebaut 2012-08-09 10:54:23 UTC
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 is 

public class Widget implements Accessible {
public class Widget implements Accessible, Lookup.Provider {

I can supply a patch if needed.
Comment 1 Jaroslav Havlin 2012-08-30 09:01:47 UTC
Created attachment 123721 [details]
Proposed Patch

Patch with change suggested by bcallebaut. Thank you!
Comment 2 Jaroslav Havlin 2012-08-30 09:04:12 UTC
Please review. Thanks.
Comment 3 bcallebaut 2012-11-26 14:33:19 UTC
(In reply to comment #2)
> Please review. Thanks.
For me it is fine
Comment 4 Jaroslav Havlin 2012-11-27 15:30:17 UTC
If there are no objections, I'll integrate on Thursday.
Comment 5 Jaroslav Havlin 2012-11-29 16:18:08 UTC
Integrated as
Comment 6 Quality Engineering 2012-12-02 03:05:52 UTC
Integrated into 'main-golden', will be available in build *201212020001* on (upload may still be in progress)
User: Jaroslav Havlin <>
Log: #216581: Widget should implement Lookup.Provider
Comment 7 businesswifi 2012-12-09 06:17:23 UTC
SPAM - Removed by Administrator