Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » IFontProvider NOT workiing(Can not use IFontProvider or FontDecorator to change default font for a tree viewer.)
IFontProvider NOT workiing [message #516468] Wed, 24 February 2010 07:01 Go to next message
lsq  is currently offline lsq Friend
Messages: 40
Registered: July 2009
Member
Can not use IIFontProvider or FontDecorator to change default font for a tree viewer. Well I can make it calling Control.setFont(Font) methods.

For example in the label provider class
public Font getFont(Object element) {
if (font == null) {
font = fontManager.getDefaultFont();
}
return font;
}
and I tried a font decorator as well something like this:
public Font decorateFont(Object element) {

if (font == null) {
font = fontManager.getDefaultFont();
}
return font;
}
still not working.

Thank you in advance for any hints , or maybe this is a bug?



Re: IFontProvider NOT workiing [message #516506 is a reply to message #516468] Wed, 24 February 2010 09:28 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
this looks like a bug. Please file a bugzilla.

TIA
Rüdiger

On 24.02.2010 08:01, lsq wrote:
> Can not use IIFontProvider or FontDecorator to change default font for a
> tree viewer. Well I can make it calling Control.setFont(Font) methods.
>
> For example in the label provider class public Font getFont(Object
> element) {
> if (font == null) {
> font = fontManager.getDefaultFont();
> }
> return font;
> }
> and I tried a font decorator as well something like this:
> public Font decorateFont(Object element) {
> if (font == null) {
> font = fontManager.getDefaultFont();
> }
> return font;
> }
> still not working.
>
> Thank you in advance for any hints , or maybe this is a bug?
>
>
>
>
Previous Topic:Urgent: How to use IApplication support???
Next Topic:Where did ThemeManager.getThemeAdapter(Class) disappeared from M5?
Goto Forum:
  


Current Time: Tue Apr 23 16:53:28 GMT 2024

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

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

Back to the top