문제

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