Moving resources between projects [message #333263] |
Tue, 02 December 2008 11:42  |
Eclipse User |
|
|
|
Hi,
When moving a resource (file) between two folders of the same project,
my builder gets two events: one with delta.getKind() ==
IResourceDelta.ADDED with a non-null delta.getMovedFromPath(), and one
with delta.getKind() == IResourceDelta.REMOVED with a non-null
delta.getMovedToPath(), which allow me to identify the actual "move" event.
However, when moving a resource from one project to another (both of
them having the builder enabled) I still get the ADDED and REMOVED
events but getMovedToPath() and getMovedFromPath() both return null -
and therefore I cannot identify the move event.
Any thoughts on this?
Cheers,
Dimitrios
|
|
|
|
|
|
Re: Moving resources between projects [message #336120 is a reply to message #336043] |
Fri, 22 May 2009 10:25  |
Eclipse User |
|
|
|
Anyone have any thoughts on this? It seems like a bug that the resource
change listener's resource deltas would have the movedFromPath set, but
not the builder's.
Richard
Richard Bone wrote:
>
> Dimitrios Kolovos wrote:
>> I'm using 3.4.0 I20080617-2000
>>
>> Szymon Brandys wrote:
>>> Hi, what Eclipse version do you use? I checked your case on Build id:
>>> N20081127-2000 and it works fine.
>>>
>
> I'm seeing the same behavior as Szymon. If I have just a simple
> ResourceChangeListener the delta movedFromPath is set, but not when
> looking at the delta in our builder.
|
|
|
Powered by
FUDForum. Page generated in 0.03227 seconds