private boolean singleTab = false;
public TabbedArea(Composite parent, int style) {
private boolean singleTab = false;
public TabbedArea(Composite parent, int style) {
CmsUiUtils.style(parent, bodyStyle);
setLayout(CmsUiUtils.noSpaceGridLayout());
CmsUiUtils.style(parent, bodyStyle);
setLayout(CmsUiUtils.noSpaceGridLayout());
title.setLayoutData(CmsUiUtils.fillWidth());
title.addSelectionListener((Selected) (e) -> showTab(tabIndex(section.getNode())));
Node node = section.getNode();
title.setLayoutData(CmsUiUtils.fillWidth());
title.addSelectionListener((Selected) (e) -> showTab(tabIndex(section.getNode())));
Node node = section.getNode();
if (!singleTab) {
ToolBar toolBar = new ToolBar(sectionHeader, SWT.NONE);
ToolItem closeItem = new ToolItem(toolBar, SWT.FLAT);
if (!singleTab) {
ToolBar toolBar = new ToolBar(sectionHeader, SWT.NONE);
ToolItem closeItem = new ToolItem(toolBar, SWT.FLAT);
protected void emptyState() {
new Section(body, SWT.NONE, null);
protected void emptyState() {
new Section(body, SWT.NONE, null);