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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -