Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Possible to have bold text displayed for labels in LabelProviders?
Possible to have bold text displayed for labels in LabelProviders? [message #298295] Fri, 27 January 2006 17:42 Go to next message
Eclipse UserFriend
Thanks
Re: Possible to have bold text displayed for labels in LabelProviders? [message #298411 is a reply to message #298295] Mon, 30 January 2006 12:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwpeck.mersoft.com

Not exactly sure what you are asking. Do you want all text in a tree /
table to be bold or just certain tree elements or columns?

If you want all the text to be bold it is as simple as creating a bold
font (be sure to dispose if it when done) and setting that font to the
tree or table.

If you want to do just one row / column or certain element then I am not
sure but I would guess a simple web search will find the answer as I
know I have read others asking about settings colors for a specific cell
and I assume the font manipulation would be very similar.

AL wrote:
> Thanks
Re: Possible to have bold text displayed for labels in LabelProviders? [message #298453 is a reply to message #298411] Mon, 30 January 2006 18:48 Go to previous messageGo to next message
Eclipse UserFriend
Yes, with SWT's TreeItem or TableItem, I can choose the fonts for the
label. Ok, it's not the ILabelProvider, but the TreeItem or TableItem.
Somehow, I must get the TreeItem/TableItem from the ContentProvider
and set the font accordingly.

Kevin Peck wrote:
> Not exactly sure what you are asking. Do you want all text in a tree /
> table to be bold or just certain tree elements or columns?
>
> If you want all the text to be bold it is as simple as creating a bold
> font (be sure to dispose if it when done) and setting that font to the
> tree or table.
>
> If you want to do just one row / column or certain element then I am not
> sure but I would guess a simple web search will find the answer as I
> know I have read others asking about settings colors for a specific cell
> and I assume the font manipulation would be very similar.
>
> AL wrote:
>
>> Thanks
Re: Possible to have bold text displayed for labels in LabelProviders? [message #298540 is a reply to message #298453] Tue, 31 January 2006 13:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bokowski.ca.ibm.com

Make your label provider implement ITableFontProvider as well.

Boris

"AL" <unbonnevie@yahoo.com> wrote in message
news:drm8jm$4c2$1@utils.eclipse.org...
> Yes, with SWT's TreeItem or TableItem, I can choose the fonts for the
> label. Ok, it's not the ILabelProvider, but the TreeItem or TableItem.
> Somehow, I must get the TreeItem/TableItem from the ContentProvider
> and set the font accordingly.
>
> Kevin Peck wrote:
> > Not exactly sure what you are asking. Do you want all text in a tree /
> > table to be bold or just certain tree elements or columns?
> >
> > If you want all the text to be bold it is as simple as creating a bold
> > font (be sure to dispose if it when done) and setting that font to the
> > tree or table.
> >
> > If you want to do just one row / column or certain element then I am not
> > sure but I would guess a simple web search will find the answer as I
> > know I have read others asking about settings colors for a specific cell
> > and I assume the font manipulation would be very similar.
> >
> > AL wrote:
> >
> >> Thanks
Re: Possible to have bold text displayed for labels in LabelProviders? [message #298569 is a reply to message #298540] Wed, 01 February 2006 02:21 Go to previous message
Eclipse UserFriend
THANKS!

Boris Bokowski wrote:
> Make your label provider implement ITableFontProvider as well.
>
> Boris
>
> "AL" <unbonnevie@yahoo.com> wrote in message
> news:drm8jm$4c2$1@utils.eclipse.org...
>
>>Yes, with SWT's TreeItem or TableItem, I can choose the fonts for the
>>label. Ok, it's not the ILabelProvider, but the TreeItem or TableItem.
>> Somehow, I must get the TreeItem/TableItem from the ContentProvider
>>and set the font accordingly.
>>
>>Kevin Peck wrote:
>>
>>>Not exactly sure what you are asking. Do you want all text in a tree /
>>>table to be bold or just certain tree elements or columns?
>>>
>>>If you want all the text to be bold it is as simple as creating a bold
>>>font (be sure to dispose if it when done) and setting that font to the
>>>tree or table.
>>>
>>>If you want to do just one row / column or certain element then I am not
>>>sure but I would guess a simple web search will find the answer as I
>>>know I have read others asking about settings colors for a specific cell
>>>and I assume the font manipulation would be very similar.
>>>
>>>AL wrote:
>>>
>>>
>>>>Thanks
>
>
>
Previous Topic:Debug Framework changes in Eclipse 3.2
Next Topic:Listening for editors closed--that is, IEditorPart closed
Goto Forum:
  


Current Time: Sun Jul 27 15:31:20 EDT 2025

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

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

Back to the top