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 - Action wiz - more informative body for CookieAction.performAction
Summary: Action wiz - more informative body for CookieAction.performAction
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2005-08-29 23:26 UTC by Jesse Glick
Modified: 2006-01-02 19:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.