Just copy and paste Java code into a Java file offers to autmatically do the necessary imports. Using an entry from the copy and paste history the dialog offering the imports is not displayed. Workaround: Fix Imports.
Integrated into 'main-golden', will be available in build *201302270948* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milutin Kristofic <email@example.com>
Log: #225085 - Pasting code from copy and paste history does not offer to add java imports
This change won't be included in netbeans patch, but next netbeans version. The change needs to be tested longer, since change is a little risky.
Ok, targeting NB 7.3.1 (as the next NB release).
BTW: not sure what are the exact steps to reproduce, but I was not able to do so even in NB 7.3 ;(
Jirka (Prox), could you please verify ? Thanks in advance.
Product Version: NetBeans IDE Dev (Build 20130312-2c21fe2d19b2)
Updates: Updates available
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b19
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b78
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev