JBIDE-17911 Make "full tree" vs. "funtions and macro defs." configurable

for Freemarker outline plus some refactoring to avoid usage of
deprecated Prefence APIs.
Again, you are right, but although it is not my code, this time I can accept it as it suits the scope of the present commit.