Problems contributing and using a Font Definition [message #463757] |
Thu, 15 February 2007 06:12 |
Eclipse User |
|
|
|
Eclipse: 3.3 M5
In my RCP application I am contributing to the org.eclipse.ui.themes extension
point:
<extension point="org.eclipse.ui.themes">
<fontDefinition
categoryId="org.rssowl.ui.ThemeCategory"
id="org.rssowl.ui.NewsFont"
label="News Font"
value="Times New Roman-bold-36">
</fontDefinition>
<themeElementCategory
id="org.rssowl.ui.ThemeCategory"
label="RSSOwl">
</themeElementCategory>
</extension>
To retrieve the font I use:
PlatformUI.getWorkbench().getThemeManager().getCurrentTheme( ).getFontRegistry().get( "org.rssowl.ui.NewsFont");
I am seeing a very strange effect. When I first call the theme-manager to give
me the font, it will return the default font (which is of course wrong).
However, when I first open the "Color and Font" preferences page (note that I
_have_ to expand the "RSSOwl" folder), close it, and then retrieve the font, I
get the correct one.
For me it looks as if my contribution is not loaded until I open it in the
preferences dialog, but thats weird, given that the contribution is added from
the main, application plugin (containing all other UI stuff).
I already filed a bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=173986) but
since I didnt got a reply
yet, I thought I ask here if I am missing something?
Ben
|
|
|
Powered by
FUDForum. Page generated in 0.04188 seconds