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 70096 - The parent of the CloneableEditor's ActionMap should not be the editor pane's ActionMap
Summary: The parent of the CloneableEditor's ActionMap should not be the editor pane's...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2005-12-08 15:21 UTC by Andrei Badea
Modified: 2010-01-12 05:20 UTC (History)
2 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 Andrei Badea 2005-12-08 15:21:11 UTC
As described in issue 41223, the parent of a CloneableEditor's action map is the
action map of the editor pane. This causes a few problems:

- the delete key affects the editor even when the toolbar has the focus. This
has been addressed in issue 69642, but the fix is not 100% reliable, since it
relies on key mappings, which can be customized.

- components added to the CloneableEditor using the
CloneableEditorSupport.wrapEditorComponent() API can't disable the delete, cut,
copy and paste actions or replace them with their own actions. Instead, the
editor actions are executed.

The fix of issue 41223 should be reconsidered, or at least there should be a
documented means for the clients of CES.weC() to override or disable the delete,
cut, copy and paste actions. 

This enhancement could have multiple implications. For example it seems the
enabled/disabled state of delete action is computed when the active TopComponent
changes, not when the focus changes or when the state is needed. This behavior
must be modified if the state of the delete action is to change when the focus
moves among components of the same TC.
Comment 1 Antonin Nebuzelsky 2008-04-17 15:15:38 UTC
Reassigning to new module owner mslama.