You can import key preferences in Eclipse.
Go to file -> Import -> preferences
,
There you can input a preferences file where one of the sections that this file type supports is "Key Preferences".
Now I don't know which format NetBeans uses when it exports the key prefs file, or exactly which format Eclipse recognizes (It's some xml you need to figure out), but I'm pretty sure you can:
- export your keys from NetBeans
- Reverse Engineer the Eclipse preferences file format (the keys section) by exporting
(file->export->preferences)
the current settings.
- write code to convert NB export format to Eclipse format..
Good Luck :)
EDIT:
I just looked at my own favorite preferences file. It has a lot of lines like:
<keyBinding commandId\="org.tigris.subversion.subclipse.ui.synchronize" contextId\="org.eclipse.ui.contexts.window" keyConfigurationId\="org.eclipse.ui.defaultAcceleratorConfiguration" keySequence\="ALT+CTRL+K S"/>\r\n
You're going to have a hard time figuring out the commandId and contextId. So scratch that idea..