Resource synchronize problem [message #331879] |
Fri, 26 September 2008 11:01  |
Eclipse User |
|
|
|
Hello,
If i rename a file in an eclipse project outside the workspace then i am
not getting MOVED_FROM or MOVED_TO flags from ResourceDelta.
Rather eclipse platfrom sends ADD of New file (with new name) and DELETE
of old file.
Do i need to implement any extension point to provide my own
implementation of computing change deltas for IResources (files, folder)
while synchronizing workspace file with local file system.
Thanks
|
|
|
|
Re: Resource synchronize problem [message #331881 is a reply to message #331880] |
Fri, 26 September 2008 11:47  |
Eclipse User |
|
|
|
Don't do that! :-P Files don't have identity. Well, maybe they have
inodes on linux, I don't know if that would help. But generally they
don't have identity so there is no way for Eclipse to know you didn't
delete the file and create a new file. The user might have even done a
copy, followed by a delete to achieve their desired affect, so you're
not going to be able to rely on MOVE information if you aren't using the
Eclipse APIs to move the files.
Blue Legend wrote:
> To make it clearer, I am renaming the file not from eclipse but
> outside eclipse directly from file system
>
|
|
|
Powered by
FUDForum. Page generated in 0.03325 seconds