Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Workspace & IResourceChangeListener
Workspace & IResourceChangeListener [message #198296] Fri, 20 February 2004 04:31 Go to next message
Eclipse UserFriend
Originally posted by: vabia.tlen.pl

Hello

I've posted this message to eclipse.technology but there was no answer.
Maybe indeed it was not the right group :-) So, I'll try here
----------------------------------
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
Re: Workspace & IResourceChangeListener [message #202664 is a reply to message #198296] Thu, 26 February 2004 19:20 Go to previous message
Eclipse UserFriend
Originally posted by: John_Arthorne.oti.com_

This is the correct newsgroup. This is also a FAQ:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#uithread
--

david vabia wrote:
> Hello
>
> I've posted this message to eclipse.technology but there was no answer.
> Maybe indeed it was not the right group :-) So, I'll try here
> ----------------------------------
> 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:PDE self hosting changes? No need for binary plug-ins?
Next Topic:Eclipse Forms
Goto Forum:
  


Current Time: Thu Mar 13 15:29:48 EDT 2025

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

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

Back to the top