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 63278

Summary: Action wiz - more informative body for CookieAction.performAction
Product: apisupport Reporter: Jesse Glick <jglick>
Component: TemplatesAssignee: Martin Krauskopf <mkrauskopf>
Status: VERIFIED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jesse Glick 2005-08-29 23:26:40 UTC
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.
Comment 1 Martin Krauskopf 2005-11-08 16:22:25 UTC
Fixed.

Checking in ui/wizard/action/DataModel.java; 1.15 -> 1.16;
Checking in ui/wizard/action/cookieAction.javx; 1.8 -> 1.9;
Comment 2 pzajac 2005-12-06 16:29:59 UTC
verified
Comment 3 Martin Krauskopf 2006-01-02 18:04:18 UTC
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);

?
Comment 4 Jesse Glick 2006-01-02 19:55:18 UTC
I wouldn't bother with getLookup; CookieAction cannot deal with non-Node.Cookie
interfaces anyway. That is left to Yarda's proposed action rewrite.