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 208058 - Changes to custom keymap not persisting
Summary: Changes to custom keymap not persisting
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 208719 (view as bug list)
Depends on: 208779
Blocks:
  Show dependency tree
 
Reported: 2012-02-03 20:18 UTC by mclaborn
Modified: 2012-03-24 11:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of problem (29.76 KB, image/png)
2012-02-03 20:20 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2012-02-03 20:18:33 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Linux version 2.6.35-32-generic running on amd64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02

I have a custom keymap.  I attempt to assign ALT+F7 to "Find Usages" in the Refactor category, but the key mapping does not take effect, and when I option the options dialog again the keymapping is gone.  

Screen shot coming shortly.
Comment 1 mclaborn 2012-02-03 20:20:25 UTC
Created attachment 115472 [details]
Screen shot of problem

This shows options dialog after I've entered ALT+F7 for "Find Usages".  From here I click OK.  When I return to this dialog, the ALT+F7 mapping is gone.
Comment 2 Jiri Prox 2012-02-07 14:55:45 UTC
Can you please start IDE with the fresh user dir and try to reassign the shortcuts?
Does this problem occur? 

Is this reproducible with other shortcuts and actions?

Thanks
Comment 3 mclaborn 2012-02-07 15:37:00 UTC
By "fresh user dir" I assume you mean ~/.netbeans ?  Doing this made it work correctly.  I went back to my original user directory and created a new keymap profile as a duplicate of the "Netbeans" profile.  It also works correctly.

Perhaps there is some kind of conversion/import issue?  It worked fine under 7.0.
Comment 4 Svata Dedic 2012-02-13 09:59:24 UTC
So what is the reproduction scenario - did you encounter the bug only when you've imported your previous 7.0 settings (with a custom keymap) into 7.1 ? Or did you cloned the misc keymap in 7.1 ? Which profile did you originally cloned to create the 'misc' keymap ?

Thanks.
Comment 5 mclaborn 2012-02-13 14:54:05 UTC
It was working properly in 7.0.  The problem started when I imported my 7.0 settings into 7.1.  I originally cloned the "NetBeans" keymap to make my custom profile.  I don't remember which version I was in when I did that clone.
Comment 6 Svata Dedic 2012-02-13 15:00:09 UTC
So you first cloned a keymap from "NetBeans" (probably in 7.0, maybe even earlier version), then imported those settings into fresh 7.1 installation. Then you've tried to change your keymap contents, and the change did not persist. Is that correct ?
Comment 7 mclaborn 2012-02-13 15:09:08 UTC
That is exactly correct.
Comment 8 Svata Dedic 2012-02-14 09:53:52 UTC
OK, found some inconsistency:

1/ installed fresh 7.0, changed Find Usages from default alt-f7 to alt-f11, and Find Usages Results to Shift-Alt-F11.

2/ installed fresh 7.1, imported settings.

* Find usages shortcut is gone. Find Usages Results is still there !
* Setting it to Alt-F11 does nothing
* Setting back to Alt-F7 (the default) suprisingly worked.

Testing further...
Comment 9 Svata Dedic 2012-02-14 18:42:44 UTC
Culprit found. 

During 7.1 relase cycle, the action ID of the 'Find usages' has changed. Therefore old settings, which use that obsolete ID will be just ignored, as if there was no shortcut for the action. 

Note that if the shortcut had not been changed by the user (or cloned into a custom keymap), nothing would have been stored and no problem would show up.
Comment 10 Jiri Prox 2012-02-22 08:25:26 UTC
*** Bug 208719 has been marked as a duplicate of this bug. ***
Comment 11 Svata Dedic 2012-03-23 12:01:03 UTC
fixed in jet-main #1273b3216363
Comment 12 Quality Engineering 2012-03-24 11:02:08 UTC
Integrated into 'main-golden', will be available in build *201203240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1273b3216363
User: Svata Dedic <sdedic@netbeans.org>
Log: #208058: added translation for obsolete action filename