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: | Shortcut not shown on Run File action in Java node's popup menu | ||
---|---|---|---|
Product: | java | Reporter: | Petr Jiricka <pjiricka> |
Component: | Project | Assignee: | Petr Hrebejk <phrebejk> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | CC: | jglick |
Priority: | P4 | Keywords: | UI |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41535 | ||
Attachments: | Aborted attempt at a patch |
Description
Petr Jiricka
2004-06-29 16:09:14 UTC
"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 *** |