Copy directory perform rename of package

Hello,

I currently have a plugin where renaming a directory seems to work. I do this through resolving the appropriate elements (parts of the package, the corresponding parts in the build file) to the PsiDirectory that they're linked to.

I more or less expected copying a file and copying a directory to work as well, but that doesn't seem to be the case. I've been googling a bit and I landed on https://github.com/JetBrains/intellij-community/blob/3f7e93e20b7e79ba389adf593b3b59e46a3e01d1/platform/lang-impl/src/com/intellij/refactoring/copy/CopyFilesOrDirectoriesHandler.java, thinking that I maybe have to extend it, but I'm not really sure that this class is the one I need, or whether it can even be extended. Could you point me in the correct direction?

Kasper

Please sign in to leave a comment.