[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?)

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