Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ILightweightLabelDecorator does not update
ILightweightLabelDecorator does not update [message #83342] Thu, 17 April 2008 03:11 Go to next message
Eclipse UserFriend
Hi !

Does anyone allready use light weight decorators ? I don't succeed to
update them explicitly...

In decorators extensions, I create a light weight decorator with a class
which implements ILightweightLabelDecorator. I just fill in the decorate
method which overlays the image conditionally.

When I do a change in my model which can affect the decoration, I call
PlatformUI.getWorkbench().getDecoratorManager().update("MY_DECORATOR ");
but the decorate method of MyLightweightLabelDecorator is never reach...

What do I do wrong ?

Any idea ?

Emmanuel
Re: ILightweightLabelDecorator does not update [message #83456 is a reply to message #83342] Thu, 17 April 2008 08:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rsternberg.innoopract.com

Hi Emmanuel,

I haven't played with this interface yet. Have you tried the same thing
with RCP? If you have an example that works with RCP and does not with
RAP, could you please file a bug?

Thanks,
Ralf

Emmanuel wrote:
> Hi !
>
> Does anyone allready use light weight decorators ? I don't succeed to
> update them explicitly...
>
> In decorators extensions, I create a light weight decorator with a class
> which implements ILightweightLabelDecorator. I just fill in the decorate
> method which overlays the image conditionally.
>
> When I do a change in my model which can affect the decoration, I call
> PlatformUI.getWorkbench().getDecoratorManager().update("MY_DECORATOR ");
> but the decorate method of MyLightweightLabelDecorator is never reach...
>
> What do I do wrong ?
>
> Any idea ?
>
> Emmanuel
>
Re: ILightweightLabelDecorator does not update [message #83539 is a reply to message #83456] Fri, 18 April 2008 05:15 Go to previous message
Eclipse UserFriend
Hi !

What I tried could not work because I use
PlatformUI.getWorkbench().getDecoratorManager().update("MY_DECORATOR_ID ");
which can only be used when no class is specified.

It seems that a LabelProviderChangedEvent shoud be fired. But I have no
idea how to fire it... Moreover, I tried to use LabelDecorator rather than
LightweightLabelDecorator but I have exacty the same problem : how to
notify that the decorate method should be execute.
Previous Topic:call for load testing tool on Rap
Next Topic:Cheat Sheets
Goto Forum:
  


Current Time: Mon Jul 07 05:15:53 EDT 2025

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

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

Back to the top