Disable searching for refactoring matches in other modules..

I am attempting to move a package into another package. However, it is also requiring that packages of the same name are also presumably moved into the actual folder in the module into which I am moving. Ie:

module1/src/mycomp
module2/src/mycomp

move module1/src/mycomp into module1/src/myparentcomp. I would like to 1) disable moving packages of the same name in in the package tree. I think it even matches packages that havae nothing to do with the moved package (ie they are not at the same place in the hierarchy/don't match the package entirely, just by name, though I'm not sure of this). 2) If it does match and attempt to move the package in the other module it should move the files in the in the other module into a newly created package in the associated package.

Ie move module2/src/mycomp to module2/src/myparentcomp/mycomp

3 comments
Comment actions Permalink

The refactoring is confusing.

0
Comment actions Permalink

Hello,

There is a possibility to move the selected directory only, then only selected directory would be moved. Otherwise you are suggested to move the package a -> b and preserve all configured roots which is useful when you reorganise the package tree.

0
Comment actions Permalink

Did you see this dialog?
movepackage.png

0

Please sign in to leave a comment.