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 89973

Summary: TC's Lookup does not enable SaveAction
Product: platform Reporter: Tim Lebedkov <lebedkov>
Component: ActionsAssignee: Jaroslav Tulach <jtulach>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 70280    
Bug Blocks:    

Description Tim Lebedkov 2006-11-23 18:27:29 UTC
Please provide a way to define SaveAction for a TC without defining a Node.

This does not seem to work:
        associateLookup(Lookups.singleton(new SaveCookie() {
            public void save() throws IOException {
                System.out.println("saving......");
            }
        }));

Thank You
Comment 1 Jaroslav Tulach 2006-11-24 10:50:07 UTC
True, this does not work, you need to put there also a Node. That is how 
NodeActions behave. I guess this is yet another reason for implementation of 
new actions as described in issue 70280
Comment 3 Tim Lebedkov 2009-09-13 10:29:31 UTC
-