Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Can't set font with ColumnLabelProvider
Can't set font with ColumnLabelProvider [message #63493] Wed, 28 November 2007 14:52 Go to next message
Eclipse UserFriend
Originally posted by: juergen.schlierf.eu

Hi,
I want to decorate the TreeViewer with different Icons and Fonts. So I
wrote a subclass of ColumnLabelProvider. The getImage() method works fine.
But any Font delivered by the getFont() method is ignored.

public class MailFolderLabelPovider extends ColumnLabelProvider {
...
// ignored
public Font getFont(Object element) {
return
JFaceResources.getFontRegistry().getBold(JFaceResources.DEFA ULT_FONT);
}
...
}

I'm using R1.0. Is that a bug?
Re: Can't set font with ColumnLabelProvider [message #64285 is a reply to message #63493] Tue, 04 December 2007 05:44 Go to previous message
Eclipse UserFriend
Hi,

this is a known limitation of the underlying (RWT) Tree widget as we had
some problems with qooxdoo while implementing this. Could you please
file a bug report so we can track this issue? Thanks!

Greets
Benny

Jürgen Schlierf wrote:
> Hi,
> I want to decorate the TreeViewer with different Icons and Fonts. So I
> wrote a subclass of ColumnLabelProvider. The getImage() method works
> fine. But any Font delivered by the getFont() method is ignored.
> public class MailFolderLabelPovider extends ColumnLabelProvider {
> ..
> // ignored
> public Font getFont(Object element) {
> return
> JFaceResources.getFontRegistry().getBold(JFaceResources.DEFA ULT_FONT);
> }
> ..
> }
>
> I'm using R1.0. Is that a bug?
>
>
>
Previous Topic:List Databinding
Next Topic:Obtain bundle context
Goto Forum:
  


Current Time: Wed Apr 30 22:51:35 EDT 2025

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

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

Back to the top