Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Resource synchronize problem
Resource synchronize problem [message #331879] Fri, 26 September 2008 11:01 Go to next message
Eclipse UserFriend
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 #331880 is a reply to message #331879] Fri, 26 September 2008 11:03 Go to previous messageGo to next message
Eclipse UserFriend
To make it clearer, I am renaming the file not from eclipse but outside
eclipse directly from file system
Re: Resource synchronize problem [message #331881 is a reply to message #331880] Fri, 26 September 2008 11:47 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Link with editor
Next Topic:new debugger implementation - changing default names
Goto Forum:
  


Current Time: Sun Feb 09 19:21:18 GMT 2025

Powered by FUDForum. Page generated in 0.03325 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top