Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370952

Summary: [type wizards] Allow to paste qualified name into new type wizard
Product: [Eclipse Project] JDT Reporter: Wojciech Owczarczyk <w.owczarczyk>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, markus.kell.r
Version: 3.8   
Target Milestone: 3.8 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Wojciech Owczarczyk CLA 2012-02-08 08:56:54 EST
Build Identifier: 20110916-0149

Split pasted qualified class name (i.e. com.foo.service.MyClass) automatically to "Package" and "Name" fields instead of displaying error "Type name must not be qualified."

Reproducible: Always

Steps to Reproduce:
1. Right click on project -> New -> Class
2. Paste qualified Class name in Name: field (i.e. com.foo.service.MyClass)
Comment 1 Wojciech Owczarczyk CLA 2012-02-08 09:08:11 EST
One more little enhancement I can think of is to check the clipboard  and fill package and class name on opening "New Class Window". But that may be a little invasive and probably should be somehow customizable.
Comment 2 Markus Keller CLA 2012-02-14 15:32:28 EST
Fixed in master: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=cb716ea8e9ff9d21632475ee0d3e28ef99920dac

We only split automatically if the package name would be valid and the Name field was empty (or fully selected) before pasting.

(In reply to comment #1)
We never automatically paste (e.g. since that could be a security problem).