Problem with ResourcChangeListener [message #32329] |
Thu, 13 November 2008 05:54  |
Eclipse User |
|
|
|
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 11:50   |
Eclipse User |
|
|
|
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 #33817 is a reply to message #33190] |
Tue, 18 November 2008 03:14  |
Eclipse User |
|
|
|
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 11:50  |
Eclipse User |
|
|
|
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 01:49  |
Eclipse User |
|
|
|
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 03:14  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05745 seconds