Bug 127649 - [dnd] Move: keep package as is when dropping to source folder
Summary: [dnd] Move: keep package as is when dropping to source folder
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-14 05:40 EST by Tom Hofmann CLA
Modified: 2022-05-12 16:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2006-02-14 05:40:39 EST
3.2 M5 testing

- have two source folders, 'src' and 'tests'
- have a CU 'org.eclipse.m5testing.Foo' in 'src' in its corresponding source folder
- use drag and drop to move 'Foo' to the 'tests' source folder, which is currently empty

< expected: the package ('org.eclipse.m5testing') is kept and the corresponding folder structure created under 'tests'.

> actual: the cu is dropped into the default package

Note that I only want the described behavior when dropping onto a source folder. The current behvavior is fine when the user drops onto a specific package, as he probably wants the moved elements to appear there. However, when I just want to split up a package, it would be much more convenient as described above. Going through Refactor > Move > Create New Package... is much more complicated. 

Imagine the following scenario:
- I quickly and dirtily created some code, accompanied with the corresponding tests.
- I find out that I want to separate the testing harness from the production code:
- create a source folder 'tests'
- move any classes that are testing-only code to the new source folder.
Comment 1 Eclipse Genie CLA 2020-05-20 17:37:42 EDT
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.
Comment 2 Eclipse Genie CLA 2022-05-12 16:14:50 EDT
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.