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.
In long term we want to move from Node.Cookie getCookie methods and replace them by universal Lookup. Something like that has already been done in Looks and Actions APIs. During the usage I have realized that it is relatively hard to create a lookup instance. Especially for simple case like immutable lookup of single existing object(s). One can use InstanceContent ic = new InstanceContent (); ic.add (singleton); return new AbstractLookup (ic); but the code is long and the memory representation of such object is overkilling the actual need (because the lookup will never change). That is why I suggest to create factory methods: public static Lookup singleton (Object objectToLookup); public static Lookup fixed (Object[] objectsToLookup); public static Lookup fixed (Object[] keys, InstanceContent.Convertor convertor); Or something like this with memory representation as small as possible.
Why wait? The sooner implemented the more people will use it. What about 3.4 P4?
It does not mean I cannot work on it now. Smaller commitment ;-)
Added to release 3.4.
Lookups is there. It might be even lighter, but it there.