سؤال

What is the best way to use preference values defined in plugin code? For example, I have created a custom editor(multipage) and would like to use Text font preference value which is already defined in eclipse.

enter image description here

Code sample would be appreciated. Thanks.

هل كانت مفيدة؟

المحلول

This varies a lot depending on which preference you want to get.

For the standard fonts you should use JFaceResources:

Font textFont = JFaceResources.getFont(JFaceResources.TEXT_FONT);
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top