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 - TC's Lookup does not enable SaveAction
Summary: TC's Lookup does not enable SaveAction
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on: 70280
Blocks:
  Show dependency tree
 
Reported: 2006-11-23 18:27 UTC by Tim Lebedkov
Modified: 2009-09-13 10:29 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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