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 - API: Cannot create a ProxyWidgetAction since the isLocked method is protected
Summary: API: Cannot create a ProxyWidgetAction since the isLocked method is protected
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 14:37 UTC by David Kaspar
Modified: 2010-04-01 14:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch (880 bytes, patch)
2007-06-21 14:43 UTC, David Kaspar
Details | Diff

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