Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [Decorator] Icons not refreshed
[Decorator] Icons not refreshed [message #112883] Thu, 20 November 2008 05:01 Go to next message
Eclipse UserFriend
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 06: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 05:30 Go to previous messageGo to next message
Eclipse UserFriend
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 05:38 Go to previous messageGo to next message
Eclipse UserFriend
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 08:45 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 17:11:08 EDT 2025

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

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

Back to the top