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 203757 - AssertionError at org.netbeans.modules.project.ui.groups.GroupsMenu.actionPerformed
Summary: AssertionError at org.netbeans.modules.project.ui.groups.GroupsMenu.actionPer...
Status: RESOLVED DUPLICATE of bug 145314
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 08:42 UTC by nymo
Modified: 2011-10-31 00:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 182017


Attachments
stacktrace (2.63 KB, text/plain)
2011-10-15 08:42 UTC, nymo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nymo 2011-10-15 08:42:07 UTC
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)
Comment 1 nymo 2011-10-15 08:42:11 UTC
Created attachment 112082 [details]
stacktrace
Comment 2 Jesse Glick 2011-10-31 00:43:44 UTC
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 ***