Bug 155783 - [reorg] Refactor/Move should optionally preserve package structure
Summary: [reorg] Refactor/Move should optionally preserve package structure
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-31 05:26 EDT by Michael Illgner CLA
Modified: 2006-09-05 12:31 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Illgner CLA 2006-08-31 05:26:40 EDT
When moving a java source from one source folder to another by using the Refactor/Move... command, it is only possible to select an already existing package in the new folder or to create a new one, but usually in this case it is desired to just preserve the existing package and simple move the jave source to the equivalent package in the new source folder. It would be very nice if the default for creating a new package would be the package of the original source.

Michael
Comment 1 Martin Aeschlimann CLA 2006-08-31 12:51:19 EDT
But you can choose the equivalent package in the other source folder, right? I just tested that and it works.
What should we improve exactly?
Comment 2 Michael Illgner CLA 2006-08-31 12:59:21 EDT
When the package does not already exist in the new source foulder, I have to remember in which package the actual class is defined, most of the time I have to lookup this in the original source file, which is usually is covered by the refactoring dialog/wizard, so i have to close it, copy the package name, reopen the move dialog and paste the package name into the create package dialog. 
When reactoring a "large" source folder into several smaller ones, a move "java source into the right location", that means into the new folder but in the same package would be very handy.