Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ILightweightLabelDecorator does not update
ILightweightLabelDecorator does not update [message #83342] Thu, 17 April 2008 07:11 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
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 12: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 09:15 Go to previous message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
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: Thu Apr 25 04:53:05 GMT 2024

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

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

Back to the top