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 139614 - Permit Actions.alwaysEnabled to delegate to a full Action
Summary: Permit Actions.alwaysEnabled to delegate to a full Action
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API
Depends on:
Blocks: 137709
  Show dependency tree
 
Reported: 2008-07-10 16:20 UTC by Jesse Glick
Modified: 2008-12-22 13:36 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 Jesse Glick 2008-07-10 16:20:28 UTC
See JG13 in issue #137709. Suggest that if the ActionListener passed to Actions.alwaysEnabled is in fact a full Action,
then AlwaysEnabledAction would begin to delegate all properties to it - enabled and getValue, not just actionPerformed -
after the delegate is first retrieved. Compare class Javadoc in

http://download.eclipse.org/eclipse/downloads/documentation/2.0/html/plugins/org.eclipse.platform.doc.isv/reference/api/org/eclipse/ui/IActionDelegate.html
Comment 1 Jaroslav Tulach 2008-07-15 21:16:57 UTC
a452fab284a5