[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: Grrr. Why private? (How to set font of MultiPageEditorPart tabs?)
|
- From: David Coppit <david@xxxxxxxxxx>
- Date: Thu, 16 Mar 2006 23:25:27 -0500
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5 (Macintosh/20051201)
David Coppit wrote:
Sigh... I missed getControl(), which also does the trick and is not
private.
Unfortunately, I still can't get it to work. Here's what I'm doing:
Control tab = getControl(pageIndex);
Font font = tab.getFont();
FontData[] fontDataArray = font.getFontData() ;
for(int i=0; i < fontDataArray.length; i++)
fontDataArray[i].setStyle(SWT.BOLD);
tab.setFont(new Font(tab.getDisplay(),fontDataArray));
Is there something wrong with this?
Thanks a lot!
David