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.
Summary: | single key binding added in StorageFilter.afterLoad doesn't replace multikeybinding | ||
---|---|---|---|
Product: | editor | Reporter: | err <err> |
Component: | Key bindings | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 179047 |
Description
err
2008-06-25 02:51:31 UTC
Thanks for filing this Ernie. afterLoad is responsible for keeping track of the original bindings so that they can be restored in beforeSave. At least for jVi. So if the infrastructure was going to automatically remove multikeybindings, it might also have to deal with the restore issue. From jvi's point of view, using the above code snippit that does both save and remove seems sufficient; that's just how to do it right in the context of the new architecture. So, at least for jVi, maybe there's nothing to fix. A helper function like "addBindings(originalMap, newBindings)" which returned a map of bindings that are taken out of orignalMap might be handy for situations where newBindings contained multikey bindings. In that case I guess a multikey would could replace a singlekey. (but jvi doesn't have that case (at least not yet)) Of course, other users of the StorageFilter might have different needs. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss |