Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Moving resources between projects
Moving resources between projects [message #333263] Tue, 02 December 2008 16:42 Go to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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 #333281 is a reply to message #333263] Wed, 03 December 2008 10:50 Go to previous messageGo to next message
Szymon Brandys is currently offline Szymon BrandysFriend
Messages: 11
Registered: July 2009
Junior Member
Hi, what Eclipse version do you use? I checked your case on Build id:
N20081127-2000 and it works fine.
Re: Moving resources between projects [message #333284 is a reply to message #333281] Wed, 03 December 2008 12:14 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
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.
>
Re: Moving resources between projects [message #336043 is a reply to message #333284] Thu, 14 May 2009 22:15 Go to previous messageGo to next message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
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.
Re: Moving resources between projects [message #336120 is a reply to message #336043] Fri, 22 May 2009 14:25 Go to previous message
Richard Bone is currently offline Richard BoneFriend
Messages: 13
Registered: July 2009
Junior Member
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.
Previous Topic:path in editor menus
Next Topic:PluginModelManager.initializeTable() problem in self-hosted application
Goto Forum:
  


Current Time: Fri Apr 19 05:30:56 GMT 2024

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

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

Back to the top