Workspace & IResourceChangeListener [message #61342] |
Sat, 31 January 2004 08:30 |
Eclipse User |
|
|
|
Originally posted by: vabia.tlen.pl
Hello
Firstly, I'm not quite sure whether it is correct group or not but I do
not see more appropriate one.
I'm writing a plug-in and I want to (have to) have view that contains
projects. And this is not a problem. I have the following class:
public class ProjectsView extends ViewPart implements
IResourceChangeListener {
....
}
The problem is with IResourceChangeListener interface. Method
resourceChanged() is called properly but refreshing of my project view
do not work. The problem is that "eclipse refreshing" is thread safe (as
it is said in documentation) so trying to refresh the Tree in my view I
receive an exception (e.g. I call tree.getItemsCount in my view and get
exception). How to solve this? I (my view) might be called after the
eclipse changed resource, I do not need to be called e.g. before and
after change, I only want to be notified about change. I'd appreciate
any ideas.
Thanks in advance
dv
|
|
|
Powered by
FUDForum. Page generated in 0.02637 seconds