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 66836 - Need equivalent of CookieAction for non-cookies
Summary: Need equivalent of CookieAction for non-cookies
Status: RESOLVED DUPLICATE of bug 166658
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on: 153442
Blocks:
  Show dependency tree
 
Reported: 2005-10-14 18:36 UTC by _ tboudreau
Modified: 2010-01-23 09:53 UTC (History)
3 users (show)

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 _ tboudreau 2005-10-14 18:36:21 UTC
We're writing lots of tutorials and trying to orient them around teaching people
modern ways to do things in NetBeans.  But in some cases, there are support
classes for things we *don't* want people to do, and none for the thing we *do*
want them to do.

CookieAction is a case in point - I want to teach people how to use Lookup
effectively, and not tell anyone to subclass Node.Cookie.  But if I do that,
then they need to implement ContextAwareAction themselves - which is really
implementing plumbing we already have for CookieAction - we just need an
equivalent that works against Utilities.actionsGlobalContext().
Comment 1 Jesse Glick 2005-10-14 19:07:51 UTC
Certainly needed, but not trivial (as we found in projects/projectui).
Comment 2 _ tboudreau 2010-01-23 03:04:37 UTC
spi.actions definitely handles this;  probably so does some sort of annotation stuff?
Comment 3 Jesse Glick 2010-01-23 09:53:54 UTC
Actions.context.

*** This bug has been marked as a duplicate of bug 166658 ***