How to disable a decorator (Linked resource) for a specific view or perspective [message #723923] |
Fri, 09 September 2011 21:25 |
Hemant Singh Messages: 24 Registered: January 2010 |
Junior Member |
|
|
I am wondering, is there any possible way to disable the Eclipse platform decorator (org.eclipse.ui.LinkedResourceDecorator) for a specific view or the perspective. As I want to disable them in my custom view or a custom perspective.
I can disable the decorator globally by IDecoratorManager.setEnabled("org.eclipse.ui.LinkedResourceDecorator", false). But that is something I don't want to do.
The following is what I have tried with no success:
a) Custom decorator In this custom decorator, I am trying to remove link added by LinkedResourceDecorator, using the following, but it doesn't work as IDecoration implementation class doesn't add overlay again, if it is already added, and somehow LinkedResourceDecorator get invoked first.
decoration.addOverlay(null, IDecoration.BOTTOM_RIGHT);
But the above code doesn't have any effect, because implementation of the decorator doesn't add any additional overlay, if overlay is already provided, and LinkedResourceDecorator always get invoked first.
b) Activity Tried to disable the decorator using activity, but seems like decorators are not supported by activity? As I can use the same activity code to disable the Eclipse platform views like resource navigator, but not this specific decorator.
Any suggestion or pointer will be greatly appreciated.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02126 seconds