Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with ResourcChangeListener
Problem with ResourcChangeListener [message #32329] Thu, 13 November 2008 10:54 Go to next message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

I'm using a ResourceChangeListener for detecting POST_CHANGES on the files
in my workspace. So when i edit a file in the editor and saves it, i get
the change event for this file. The problem now is that i get not only one
event for the edited file, i get a lot of other events, that other source
files in the workspace has been changed?? But in fact they haven't
changed, they are not even opened.

Is there anyone out there who has expierienced this problem before?

Is this a bug or so?

regards

Matthias
Re: Problem with ResourcChangeListener [message #32907 is a reply to message #32329] Fri, 14 November 2008 16:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 11/13/2008 5:54 AM, Matthias Kohles wrote:
> Hey,
>
> I'm using a ResourceChangeListener for detecting POST_CHANGES on the
> files in my workspace. So when i edit a file in the editor and saves it,
> i get the change event for this file. The problem now is that i get not
> only one event for the edited file, i get a lot of other events, that
> other source files in the workspace has been changed?? But in fact they
> haven't changed, they are not even opened.

Are you sure they are other source files, or other files that would be
expected to be touched as part of the build (like .class files)?
Also, note that a single resource delta will include several resources
because the parents of the file that was saved are included.
This article might help:
http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html

Hope this helps,
Eric
Re: Problem with ResourcChangeListener [message #33190 is a reply to message #32907] Mon, 17 November 2008 06:49 Go to previous messageGo to next message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

thanks for your reply. The other events are other source files and they
are not touched in any way.
That the parents are includes should be not a problem, that's ok.
I'm going to test this now under windows, maybe it's about the operating
system?

Thank you for the article :-)

regards

Matthias Kohles
Re: Problem with ResourcChangeListener [message #33817 is a reply to message #33190] Tue, 18 November 2008 08:14 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

i was now able to test my plugin on windows xp. There i got only the event
from the file which has changed and not some pseudo change events.

So it seems that it is a problem on the operating system (red hat) ?

it will test it on ubuntu when i get home today.

regards matthias
Re: Problem with ResourcChangeListener [message #585156 is a reply to message #32329] Fri, 14 November 2008 16:50 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3071
Registered: July 2009
Senior Member
On 11/13/2008 5:54 AM, Matthias Kohles wrote:
> Hey,
>
> I'm using a ResourceChangeListener for detecting POST_CHANGES on the
> files in my workspace. So when i edit a file in the editor and saves it,
> i get the change event for this file. The problem now is that i get not
> only one event for the edited file, i get a lot of other events, that
> other source files in the workspace has been changed?? But in fact they
> haven't changed, they are not even opened.

Are you sure they are other source files, or other files that would be
expected to be touched as part of the build (like .class files)?
Also, note that a single resource delta will include several resources
because the parents of the file that was saved are included.
This article might help:
http://www.eclipse.org/articles/Article-Resource-deltas/reso urce-deltas.html

Hope this helps,
Eric
Re: Problem with ResourcChangeListener [message #585293 is a reply to message #32907] Mon, 17 November 2008 06:49 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

thanks for your reply. The other events are other source files and they
are not touched in any way.
That the parents are includes should be not a problem, that's ok.
I'm going to test this now under windows, maybe it's about the operating
system?

Thank you for the article :-)

regards

Matthias Kohles
Re: Problem with ResourcChangeListener [message #585564 is a reply to message #33190] Tue, 18 November 2008 08:14 Go to previous message
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Member
Hey,

i was now able to test my plugin on windows xp. There i got only the event
from the file which has changed and not some pseudo change events.

So it seems that it is a problem on the operating system (red hat) ?

it will test it on ubuntu when i get home today.

regards matthias
Previous Topic:HeadLess Build
Next Topic:Problem regenerating Sites
Goto Forum:
  


Current Time: Tue Sep 21 01:54:47 GMT 2021

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

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

Back to the top