eclipse - Programmatically activating existing label decorator from another plugin -
i have plugin contributes label decorator org.ui.eclipse.decorators
. want label decorator inactive default, achieved quite straight forward setting state
-attribute false
.
now point of question: possible change state of decorator programmatically from plugin? user can check , uncheck decorator global preferences, can achieved plugin?
thanks in advance!
you can enable (or disable) decorator using:
idecoratormanager manager = platformui.getworkbench().getdecoratormanager(); manager.setenabled("decorator id", true);