Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370952 - [type wizards] Allow to paste qualified name into new type wizard
Summary: [type wizards] Allow to paste qualified name into new type wizard
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.8 M6   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-08 08:56 EST by Wojciech Owczarczyk CLA
Modified: 2012-02-14 15:32 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).