Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Adding ProblemLabelDecorator to viewer
Adding ProblemLabelDecorator to viewer [message #699501] Thu, 21 July 2011 16:41 Go to next message
Eclipse UserFriend
Hello,

My project has a builder associated with it that creates markers and uses ProblemLabelDeocorator in the view to display builder errors. Before adding builder I had ManagedWorkbenchLabelDecorator set:

ILabelProvider integrationViewLabelProvider = new IntegrationViewLabelProvider();
ILabelDecorator decorator = PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator();
viewer.setLabelProvider(new DecoratingLabelProvider(integrationViewLabelProvider, decorator));


When I added ProblemLabelDeocorator to viewer, markers from SVN for example were no longer showing. I added org.eclipse.ui.decorators extension point with org.eclipse.jdt.ui.ProblemsLabelDecorator as class to view plugin and that seemed to make both SVN markers and problem markers happy. However file that has problems and is under version control has question mark icon instead of SVN square icon as shown below.

http://i.imgur.com/wFfEw.png

I am not sure if this is the right place to ask this question, I thought since I am dealing with ProblemsLabelDecorator I might get help here. Also, I am looking at Package Explorer code but decided to post here in hope someone can advise on issue faster or more correctly.

thanks for your help,
Alex
Re: Adding ProblemLabelDecorator to viewer [message #699507 is a reply to message #699501] Thu, 21 July 2011 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Alex wrote on Thu, 21 July 2011 12:41
Hello,

My project has a builder associated with it that creates markers and uses ProblemLabelDeocorator in the view to display builder errors. Before adding builder I had ManagedWorkbenchLabelDecorator set:

ILabelProvider integrationViewLabelProvider = new IntegrationViewLabelProvider();
ILabelDecorator decorator = PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator();
viewer.setLabelProvider(new DecoratingLabelProvider(integrationViewLabelProvider, decorator));


When I added ProblemLabelDeocorator to viewer, markers from SVN for example were no longer showing. I added org.eclipse.ui.decorators extension point with org.eclipse.jdt.ui.ProblemsLabelDecorator as class to view plugin and that seemed to make both SVN markers and problem markers happy. However file that has problems and is under version control has question mark icon instead of SVN square icon as shown below.

http://i.imgur.com/wFfEw.png

I am not sure if this is the right place to ask this question, I thought since I am dealing with ProblemsLabelDecorator I might get help here. Also, I am looking at Package Explorer code but decided to post here in hope someone can advise on issue faster or more correctly.

thanks for your help,
Alex


I should also note that the view that is used extends from ResourceNavigator which is deprecated and not CommonNavigator as it should be.
Re: Adding ProblemLabelDecorator to viewer [message #699549 is a reply to message #699507] Thu, 21 July 2011 18:43 Go to previous message
Eclipse UserFriend
The problem solved itself...literally. I didn't do anything but deleted project that was there before extension point addition and created numerous ones and this works.
Previous Topic:Print JDWP packets trace
Next Topic:OSGI bundles resolution problem
Goto Forum:
  


Current Time: Mon Feb 10 20:08:59 GMT 2025

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

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

Back to the top