|
Re: Problem with ResourcChangeListener [message #32907 is a reply to message #32329] |
Fri, 14 November 2008 16: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 #585156 is a reply to message #32329] |
Fri, 14 November 2008 16:50 |
Eric Rizzo Messages: 3070 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04052 seconds