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.
1. Create a Java application project with main class 2. Right click on the main class that was created 3. The popup menu has action Run File. This action has shortcut Shift-F6, which is the same as Run -> Run Other -> Run "Main.java" in the main menu. Shortcut Shift-F6 should be shown next to the Run File action is the file's popup menu. Same for Debug File.
"Run File" is registered by java/project.
I tried for a while to fix this, without success. Will attach the current state of my efforts. Clearly the wrapper actions need to delegate to the originals declared in the projectui layer, so as to get the accelerator registered to them by ShortcutsFolder. However it seems that this is null even with that change, and I am not sure why. Also I am not sure if calling ActionWrapper.putProperty(ACCELERATOR_KEY,acc) will do anything; probably the context menu item delegates to the context sensitive action for its appearance. If so, AcceleratorWrapper will need to be uncommented and used instead of AW.putProperty.
Created attachment 16712 [details] Aborted attempt at a patch
Would it make sense to just use the same action in both the popup menu and the main menu, and get rid of the wrapper/delegator mechanism alltogether? Would that help?
Can't. DataLoader.actions is of type SystemAction[], whereas the original actions are not of type SystemAction.
*** This issue has been marked as a duplicate of 47389 ***