Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ID of default font for TableViewers
ID of default font for TableViewers [message #330129] Tue, 15 July 2008 22:51 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Hyperlink as tableitem in jface/swt table
Next Topic:Transitive plugin version dependencies
Goto Forum:
  


Current Time: Tue Nov 12 19:50:18 GMT 2024

Powered by FUDForum. Page generated in 0.07448 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top