Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Decorator] Icons not refreshed
[Decorator] Icons not refreshed [message #112883] Thu, 20 November 2008 10:01 Go to next message
Gilles Scouvart is currently offline Gilles ScouvartFriend
Messages: 3
Registered: July 2009
Junior Member
Hi RAP team,

We are using a decorator on a TreeViewer, showing when an item is locked.
Despite all our efforts (calls to TreeViewer#refresh() and to
DecoratorManager.update(MyDecorator.ID)), the icons are not immediately
updated when an item gets locked, although the
MyDecorator#decorate(Object,Decoration) method was called. Only after some
other action (opening another editor, etc.) do we see the change.

Do you have an idea as how to force a refresh?

Thanks for your help!
Re: [Decorator] Icons not refreshed [message #113107 is a reply to message #112883] Sun, 23 November 2008 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Gilles,

is the change of the item's state triggered by an interaction of the
current user or by some background operation? In the latter case you
might need to force an update of the client. You could have a look at
UiCallBack#activate().

Regards, Ralf

Gilles Scouvart wrote:
> Hi RAP team,
>
> We are using a decorator on a TreeViewer, showing when an item is locked.
> Despite all our efforts (calls to TreeViewer#refresh() and to
> DecoratorManager.update(MyDecorator.ID)), the icons are not immediately
> updated when an item gets locked, although the
> MyDecorator#decorate(Object,Decoration) method was called. Only after
> some other action (opening another editor, etc.) do we see the change.
>
> Do you have an idea as how to force a refresh?
>
> Thanks for your help!
>
Re: [Decorator] Icons not refreshed [message #113194 is a reply to message #113107] Mon, 24 November 2008 10:30 Go to previous messageGo to next message
Gilles Scouvart is currently offline Gilles ScouvartFriend
Messages: 3
Registered: July 2009
Junior Member
Thanks for your reply!

In fact we have both situations. One case is a simple decorator for locked
files. In another case, the decoration is the result of a rather long
computation, so we make it into an asynchronous job.

However, why don't you just setup a UI callback for the decoration job
itself? This would seem to solve both cases, right?

Again thanks for help!
Re: [Decorator] Icons not refreshed [message #114765 is a reply to message #113194] Mon, 08 December 2008 10:38 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Can anybody help Gilles and I to solve this problem ?
Thanks !

Emmanuel
Re: [Decorator] Icons not refreshed [message #114777 is a reply to message #114765] Mon, 08 December 2008 13:45 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Emmanuel Marchal wrote:
> Can anybody help Gilles and I to solve this problem ?
> Thanks !

Please try to enable asynchronous UI updates by calling
UICallback#activate( some id ). For a simple test, you can put this call
into your WorkbenchWindowAdvisor implementation.

Ralf
Previous Topic:Equinox + Jetty + Browser Widget - Problem
Next Topic:changing fontsize during lifecycle
Goto Forum:
  


Current Time: Thu Apr 25 11:06:26 GMT 2024

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

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

Back to the top