ID of default font for TableViewers [message #330129] |
Tue, 15 July 2008 22:51 |
Eclipse User |
|
|
|
Originally posted by: davidhuebel.example.net
I would like to declare a font definition (using the
org.eclipse.ui.themes.fontDefinition extension point) that defaults to the
same default font used by TableViewer. This way my font will match the
platform default, but users can change it using preferences.
I guess the value of JFaceResources.VIEWER_FONT would work, but according to
the Javadoc, that symbol is deprecated. Is its value
("org.eclipse.jface.viewerfont") deprecated as well? Is there a different
id I should use?
Thanks,
David
|
|
|
Re: ID of default font for TableViewers [message #330143 is a reply to message #330129] |
Wed, 16 July 2008 18:50 |
Eclipse User |
|
|
|
Originally posted by: davidhuebel.example.net
Okay, simpler question: assuming I want to use the system default font
(which TableViewer seems to use by default,) how do I define a font that
defaults to the system font?
defaultsTo="org.eclipse.jface.defaultfont" causes NullPointerExceptions when
the Colors and Fonts preference page is open, and my font definition
doesn't appear. Using "org.eclipse.jface.textfont" works fine.
-David
|
|
|
Powered by
FUDForum. Page generated in 0.07448 seconds