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.
Currently this method is left empty. Should generate for single-selection actions with one cookie class: WhateverCookie c = (WhateverCookie) activatedNodes[0].getCookie(WhateverCookie.class); // TODO use c For multiple selection actions, maybe iterate over activatedNodes. For multiple cookie classes, it's too complicated to deal with, so leave it as is, I guess.
Fixed. Checking in ui/wizard/action/DataModel.java; 1.15 -> 1.16; Checking in ui/wizard/action/cookieAction.javx; 1.8 -> 1.9;
verified
Shouldn't we use lookup-style - generate rather: WhateverObject c = (WhateverObject) activatedNodes[0].getLookup().lookup(WhateverObject.class); then: WhateverCookie c = (WhateverCookie) activatedNodes[0].getCookie(WhateverCookie.class); ?
I wouldn't bother with getLookup; CookieAction cannot deal with non-Node.Cookie interfaces anyway. That is left to Yarda's proposed action rewrite.