1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 01:45:33 +02:00

workaround fro 138311. Need to set the group title so that SWT knows how to allocate UI real estate on non-windows platforms.

This commit is contained in:
David McKnight 2006-05-23 13:19:24 +00:00
parent 8d369ab05b
commit 19317261be

View file

@ -182,9 +182,16 @@ FocusListener
public Composite createTabFolderPage(CTabFolder tabFolder, CellEditorActionHandler editorActionHandler)
{
_tabFolderPage = new Group(tabFolder, SWT.NULL);
Font font = tabFolder.getFont();
_tabFolderPage.setFont(font);
// dummy title so that sizings work
// fix for 138311
String dummyTitle = ShellResources.RESID_SHELLS_COMMAND_SHELL_LABEL;
_tabFolderPage.setText(dummyTitle);
GridLayout gridLayout = new GridLayout();
_tabFolderPage.setLayout(gridLayout);
createControl(_tabFolderPage);
ISystemRegistry registry = RSEUIPlugin.getTheSystemRegistry();