Copy class listener

Is there a way to get called whenever a class or file gets copied?
Something like VirtualFileListener.beforeFileMovement / fileMoved().
In Perforce you can copy a file while keeping the history and I need
to be able to track file/class copying.

Of course, I can have my own file-copy action, but:
- add it to all menus, figure out enable/disable, etc. may be just
duplication
of what is already done
- I may lose the constructor renaming functionality.

r.


1 comment
Comment actions Permalink

No, it's currently not possible (and one of the reasons is that VFS does not
support "copy" operation, it's performed manually by writing original file's
contents to the new one).

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"Richard Nemec" <rndzank@attbi.com> wrote in message
news:at8395$39m$1@is.intellij.net...

Is there a way to get called whenever a class or file gets copied?
Something like VirtualFileListener.beforeFileMovement / fileMoved().
In Perforce you can copy a file while keeping the history and I need
to be able to track file/class copying.

>

Of course, I can have my own file-copy action, but:
- add it to all menus, figure out enable/disable, etc. may be just
duplication
of what is already done
- I may lose the constructor renaming functionality.

>

r.

>
>


0

Please sign in to leave a comment.