Say you have two source folders: src/main and src/testcases.
You have one package src/main/foo and one class src/testcases/FooTest.java.
Then you decided to move src/testcases/FooTest.java to
src/testcases/foo/FooTest.java.

1. In this particular case you're not given an option to choose the
destination directory
(it's assumed that you want to move it to src/main/foo). If there's no foo
package anywhere
you can choose the destination directory.
2. In the refactoring preview the destination directory is not mentioned
anywhere.

The class was moved to src/main/foo, though I expected and thought that it
was moved to
src/testcases/foo. The workaround here is to create the testcases/foo folder
before
you move the class.

Suggestions:

1. In the refactoring preview the destination directory should be mentioned.
2. In this case you should be given the chance to use the choose destination
directory dialog,
just like in the situation where there's no foo package.


Timur Zambalayev


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to