Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:13 Go to next message
Mahua Roy is currently offline Mahua RoyFriend
Messages: 1
Registered: April 2016
Junior Member
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 18:06 Go to previous message
Antony Gordon is currently offline Antony GordonFriend
Messages: 1
Registered: May 2016
Junior Member
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: Tue Mar 19 06:58:41 GMT 2024

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

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

Back to the top