Community
Participate
Working Groups
Build Identifier: 20100617-1415 When I select a certain package and press Ctrl+C, then select a completely different package and press Ctrl+V, I expect the package with all its contents (of course including sub packages) to be pasted into this package. So select "com.mycomp.p1" (containing some classes and sub packages) press Ctrl+C select "com.mycomp.p2" press Ctrl+V Then there should be a new package "com.mycomp.p1.p2" containing a copy of all the contents of the original "com.mycomp.p1". What actually happens is, that regardless of the second selection, Eclipse wants to insert the copy by the original name and because of the naturally generated conflict asks me t o type a new name and suggests "com.mycomp.p1.copy". It would be nice, if this behavior was changed to the expected one or at least there was a preferences setting. Reproducible: Always
We won't choose the new name automatically, but I agree that the proposed name could be improved in this situation. But in your example, you're pasting p1 into p2, so the proposed name should be "com.mycomp.p2.p1" (not ...p1.p2). In general: "<destination_package_name>.<source_package_name_without_common_prefix>". A good quality patch would speed up the resolution of this bug. See org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgPolicyFactory.NewNameProposer.createNewName(IPackageFragment, IPackageFragmentRoot).
You're right about "com.mycomp.p2.p1". I will see, if I can find the time to checkout the eclipse source and provide a patch.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.
Nothing has changed here. Bug still persists.