Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » lightweight label decorator lazy instantiation problem
lightweight label decorator lazy instantiation problem [message #337010] Tue, 21 July 2009 00:09
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
I am trying to programmatically access my ILightweightLabelDecorator using

PlatformUI.getWorkbench().getDecoratorManager().getBaseLabel Provider(id)

This returns null sometimes, seemingly because the actual class is lazily
instantiated by the decoration process. Is there a way for me to make this
more deterministic?

I am trying to access the decorator to inform it an IObservableSet of
elements that it is decorating so it can fire LabelProviderChangeEvents
appropriately when the elements change. Is there a better way to do this?

Thanks,
Will
Previous Topic:re-target copy command wtih handler
Next Topic:Which setting files should/must/shouldn't be under version control?
Goto Forum:
  


Current Time: Mon Dec 22 10:09:40 GMT 2014

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

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