Community
Participate
Working Groups
Build id: I20091217-0819 Steps: I'll attach a test illustrating the issue.
Created attachment 155484 [details] Test v01
According to my tracing, this occurs because of the following line in ResourceTree.standardMoveFolder(): if (!force && !isSynchronized(source, IResource.DEPTH_INFINITE)) { message = NLS.bind(Messages.localstore_resourceIsOutOfSync, source.getFullPath()); IStatus status = new ResourceStatus(IStatus.ERROR, source.getFullPath(), message); failed(status); The isSynchronized() is always false because the synchronizeExistence() is always false for that tree. It seems like we should be able to move linked resources that have broken location, but I'm not sure of why this restriction exists to begin with. Maybe we should check if the resource is linked before considering it as 'not synchronized', but it seems it would have un-suspected repercussions.
Thanks Serge. I'm on it already. I think that we should be less restrictive while checking isSynchronized() for SHALLOW move or copy. Links pointing to non-exisitng locations should be treated as synced then.
set target
It's a duplicate. I think I raised it twice accidentally. *** This bug has been marked as a duplicate of bug 298870 ***