Vcs plugin: How to track file operations (rename et al.)

Hi,

I currently develop a version control plugin for IDEA. To track file operations I registered a custom VirtualFileListener implementation during project opening like it's done in the svn plugin example sources. However, when I do a refactoring (Refactor->Rename) of a class just the content Changed() method of the VirtualFileAdapter is called not move() as expected. This is with IDEA 6.0.2 and the corresponding PDK.

What else needs to be done to get the notifications?

-Tim

0
2 comments
Avatar
Permanently deleted user

fileMoved() is called for move refactoring. For rename you get propertyChanged with VirtualFile.PROPERTY_NAME as the changed property.

0
Avatar
Permanently deleted user

Ah. Missed that.

Thanks, it's working now.

-Tim

0

Please sign in to leave a comment.