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 107642

Summary: API: Cannot create a ProxyWidgetAction since the isLocked method is protected
Product: platform Reporter: David Kaspar <dkaspar>
Component: GraphAssignee: issues@platform <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Patch

Description David Kaspar 2007-06-21 14:37:22 UTC
The WidgetAction.isLocked method is protected. Becuase of that it is not possible to implement ProxyWidgetAction which
wraps original WidgetAction.
Comment 1 David Kaspar 2007-06-21 14:43:05 UTC
Created attachment 44176 [details]
Patch
Comment 2 Jaroslav Tulach 2007-06-21 16:03:26 UTC
Y01 apichanges (btw. source incompatible change), @since, etc.
Y02 as a test case consider writing the proxy action and ensuring at least isLocked is properly delegated.
Comment 3 David Kaspar 2007-06-21 18:39:56 UTC
Taking the patch back since it is backward-incompatible. The isLocked method is already implemented on many places.
Better solution would be to provide a new WidgetAction.ProxyLockedAction class which will delegate the all method call
to a specified WidgetAction.LockedAction instance.