Can't rename/refactor a split package

Our projects are getting more complex, and I started hitting this problem much more often, up to a point where IDEA stands in a way   Would appreciate any feedback.

moduleA
----- package com.foo
----------ClassA

moduleB
----- package com.foo
----------ClassB

Now, when I try to refactor moduleB and rename com.foo to com.bar, IDEA prompts that *every* other module's package will be moded too. Hit no, get back to square 1. Is there a way to perform a module-scoped refactoring?

1 comment
Comment actions Permalink

Hello Andrew,

Thank you for pointing this out. Fixed.

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Our projects are getting more complex, and I started hitting this
problem much more often, up to a point where IDEA stands in a way
Would appreciate any feedback.

moduleA
----- package com.foo
----------ClassA
moduleB
----- package com.foo
----------ClassB
Now, when I try to refactor moduleB and rename com.foo to com.bar,
IDEA prompts that every other module's package will be moded too.
Hit no, get back to square 1. Is there a way to perform a
module-scoped refactoring?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5243050#5243050



0

Please sign in to leave a comment.