Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Workspace & IResourceChangeListener
Workspace & IResourceChangeListener [message #61342] Sat, 31 January 2004 13:30
Eclipse UserFriend
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
Previous Topic:Licensing
Next Topic:Workspace & IResourceChangeListener
Goto Forum:
  


Current Time: Mon Dec 22 18:31:22 GMT 2014

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

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