TabbedStackPresentation stack = (TabbedStackPresentation) folder.getPresentation();
AbstractTabFolder tabFolder = stack.getTabFolder();
if (tabFolder.getItemCount() == 1) {
// Get the space that we need to show the tab
AbstractTabItem firstItem = tabFolder.getItem(0);
Rectangle tabRect = firstItem.getBounds();
// Take the current shell 'trim' into account
int shellHeight = windowShell.getBounds().height - windowShell.getClientArea().height;
int shellWidth = windowShell.getBounds().width - windowShell.getClientArea().width;