Builder and Resource change listener [message #332558] |
Tue, 28 October 2008 18:04  |
Eclipse User |
|
|
|
Hey,
I got a problem about builder and resource change listener. In our
plug-in, we have implemented a builder and a resource change listener. If
the the automatically build function is turned on, our plug-in seems to
get into a bad situation that user can not cancel the building process by
click the "Canacel" button. After investigation, I found there are two
things running parallely:
1. The building process. When our builder builds the workspace, it makes
some resource changes and they are caught by our resource change listener.
2. The resource change listener. When our resource change listener handles
those resource changes, it creates new resource changes.
When the "Cancel" button is clicked, the building process is stopped, but
the resource change listener is still running to handle the resource
changes and it also creates new resource changes which invoke the building
process again.
Any idea how can I handle this situation?
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03694 seconds