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 251774

Summary: Missing shortcuts in Source menu
Product: editor Reporter: cezariusz <cezariusz>
Component: Actions/Menu/ToolbarAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: CC popup shows only when called from the menu
Missing shortcuts
Shortcuts are back

Description cezariusz 2015-04-12 07:54:43 UTC
Product Version: NetBeans IDE Dev (Build 201504100001)
Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; pl_PL (nb)

Code completion doesn't work using a keyboard shortcut when a variable type is unknown. Let's take the following example:

package org.cezariusz.testing;

public class CodeCompletion {
    
    Map<String, String> map = new Hash|

}

Note there are no imports at all. Try to call CC pressing Ctrl+Space at the cursor position (|) - nothing happens. Try to do the same using menu action (Source -> Complete Code) and the CC popup will appear.
Comment 1 cezariusz 2015-04-12 07:57:41 UTC
Created attachment 153138 [details]
CC popup shows only when called from the menu
Comment 2 cezariusz 2015-04-12 08:16:01 UTC
I cannot reproduce it after the restart, so it must be something with the keymapping. Sometimes they disappear from menu.
Comment 3 cezariusz 2015-04-12 08:19:42 UTC
Created attachment 153139 [details]
Missing shortcuts

I'm using Eclipse profile for keymap.
Goto Tools -> Options -> Keymap. Press Cancel and open "Source" menu - most shortcuts will be missing on the menu actions.
Comment 4 cezariusz 2015-04-12 08:22:57 UTC
Created attachment 153140 [details]
Shortcuts are back

Open the menu again and the shortcuts are back.
Comment 5 Dusan Balek 2015-04-13 08:41:23 UTC
Reproducible.