Adding ProblemLabelDecorator to viewer [message #699501] |
Thu, 21 July 2011 16:41  |
Eclipse User |
|
|
|
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.

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   |
Eclipse User |
|
|
|
Alex wrote on Thu, 21 July 2011 12:41Hello,
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.

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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02893 seconds