Move package refactoring limitation?

Hi there,

I have a package I'd like to move to another place. The java package exists
in multiple source roots, but I want to move only one of these subsets, with
all the subpackages and classes. However, IDEA offers me only 2 options:
move all the packages (with a continue or cancel option) or move the directory
to another source root. Neither one is what I want to do. Am I missing something
obvious here?

Thx,
Andrei


3 comments

Could you try to explain again? To me it sounds like you do want to move
the directory.

Andrei Oprea wrote:

Hi there,

I have a package I'd like to move to another place. The java package
exists in multiple source roots, but I want to move only one of these
subsets, with all the subpackages and classes. However, IDEA offers me
only 2 options: move all the packages (with a continue or cancel option)
or move the directory to another source root. Neither one is what I want
to do. Am I missing something obvious here?

Thx,
Andrei

0

Hello Keith,

KL> Could you try to explain again? To me it sounds like you do want to
KL> move the directory.
KL>

Yes, but not to another source root, I want to move it to another location
withing the same source root (which is what move package would do if the
package were in a single source root).

What I ended up doing was to create the package structure manually in the
new place and move the files there. I think this should have been possible
with the move refactoring, if it's not there already and I'm missing it...

Thx,
Andrei


0

In article <6f7635fab7278c804f11a4d780e@news.intellij.net>,
andrei.oprea@rogers.com says...

Hello Keith,

KL> Could you try to explain again? To me it sounds like you do want to
KL> move the directory.
KL>

Yes, but not to another source root, I want to move it to another location
withing the same source root (which is what move package would do if the
package were in a single source root).

What I ended up doing was to create the package structure manually in the
new place and move the files there. I think this should have been possible
with the move refactoring, if it's not there already and I'm missing it...

Thx,
Andrei


It sounds like you are unchecking the "preserve source?" option.
--
-


David H. McCoy


-


0

Please sign in to leave a comment.