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

Summary: Permit Actions.alwaysEnabled to delegate to a full Action
Product: platform Reporter: Jesse Glick <jglick>
Component: ActionsAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: blocker Keywords: API
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 137709    

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