Retrieving arbitrary Eclipse preferences programmatically -
i writing a plugin pig files. retrieve eclipse "file associations" preference - 1 under general -> editors -> file associations -> file types / associated editors.
once have preference, plugin can know file types being used, , act accordingly when iterating on workspace files (in searches , like).
i couldn't find "directory" of preferences anywhere, nor api iterate on until found it. searching file system of workspace didn't seem work either - possibly preferences being held in binary format.
1) key retrieving preference preferencestore?
2) best way, in general, finding key given preference?
use
ifileeditormapping[] mapping = platformui.getworkbench().geteditorregistry().getfileeditormappings();
to mappings between file types , supported editors. at javadoc see ever want know mappings
Comments
Post a Comment