From 19317261be73334e22690b6a2160168d79ed5454 Mon Sep 17 00:00:00 2001 From: David McKnight Date: Tue, 23 May 2006 13:19:24 +0000 Subject: [PATCH] workaround fro 138311. Need to set the group title so that SWT knows how to allocate UI real estate on non-windows platforms. --- .../org/eclipse/rse/shells/ui/view/CommandsViewPage.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java index 600c6dfe06d..f34ddbd2ad2 100644 --- a/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java +++ b/rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/shells/ui/view/CommandsViewPage.java @@ -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();