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.
Build: NetBeans IDE 7.1 Beta (Build 201109252201) VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Windows 7 User Comments: nymo: using CTRL+1 in Keymap assigned for Project Group seems not working nymo: reassigned key in keymap Stacktrace: java.lang.AssertionError at org.netbeans.modules.project.ui.groups.GroupsMenu.actionPerformed(GroupsMenu.java:92) at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:1138) at javax.swing.JComponent.processKeyBindings(JComponent.java:0) at javax.swing.JComponent.processKeyEvent(JComponent.java:0) at java.awt.Component.processEvent(Component.java:0) at java.awt.Container.processEvent(Container.java:0)
Created attachment 112082 [details] stacktrace
I could remove the assertion, but it just means that you tried to assign a shortcut to an "action" which is merely a placeholder for a submenu, and could not possibly be run from a shortcut. Unfortunately there is no way currently for the action to "tell" the Keymap panel that it is not available for use as a shortcut; in order to use @ActionRegistration the code is forced to implement a meaningless interface: public class GroupsMenu extends AbstractAction implements Presenter.Menu, Presenter.Popup { public void actionPerformed(ActionEvent e) { assert false; } ... } *** This bug has been marked as a duplicate of bug 145314 ***