Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to refresh decorations of the files in Package Explorer view
How to refresh decorations of the files in Package Explorer view [message #1728942] Fri, 08 April 2016 10:13 Go to next message
Eclipse UserFriend
Hi,

I'm using lightweight decorators to decorate the resources that have problems.
I have created some markers in a new view after the static analysis has finished.
I want to redecorate the files having problems, in the Package Explorer view.
How to force the refresh of decorations (in Package explorer view) after the markers are created?

I am using the approach described in "Understanding decorators in Eclipse" at
http://www.eclipse.org/articles/Article-decorators/decorators.html using
the LabelProviderChangedEvent() but it does not work. The event is fired
but nothing happens in the Package Explorer view.

Please reply at mahuaroy@yahoo.com.

Best regards,

Mahua Roy
mahuaroy@yahoo.com
Re: How to refresh decorations of the files in Package Explorer view [message #1733255 is a reply to message #1728942] Wed, 25 May 2016 14:06 Go to previous message
Eclipse UserFriend
Hi,

I had the same problem with my decorator (I have a different one now) but to solve that turned out to be real easy. Most of the instructions sent me in a loop but what finally worked was this:

IDecoratorManager decoratorManager = PlatformUI.getWorkbench().getDecoratorManager();
							decoratorManager.update(DecoratorActivator.PLUGIN_ID);
Previous Topic:remove items from contex menu
Next Topic:Create a IFolder on a project with an extra level
Goto Forum:
  


Current Time: Sat Mar 15 09:12:09 EDT 2025

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

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

Back to the top