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); 

Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -