Workspace & IResourceChangeListener [message #198296] |
Fri, 20 February 2004 04:31  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.07920 seconds