X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Fwidgets%2FTabbedArea.java;h=8a021f1de9ca3586cbcc7760298f417701366ad8;hb=11c9710b1d2456c8304a5841d775af008a794431;hp=a9459519aab4bf40ae24a6d2b82df73972616085;hpb=5dbd2c7c5327057703531f0650c04c4be1df96b0;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java index a9459519a..8a021f1de 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/widgets/TabbedArea.java @@ -115,6 +115,8 @@ public class TabbedArea extends Composite { } public void view(CmsUiProvider uiProvider, Node context) { + if (body.isDisposed()) + return; int index = tabIndex(context); if (index >= 0) { showTab(index); @@ -132,7 +134,7 @@ public class TabbedArea extends Composite { } currentUiProvider = uiProvider; section.setNode(context); - section.setLayoutData(CmsUiUtils.coversAll()); + section.setLayoutData(CmsUiUtils.coverAll()); build(section, uiProvider, context); if (sections.size() == 0) sections.add(section); @@ -159,7 +161,7 @@ public class TabbedArea extends Composite { int currentIndex = sections.indexOf(currentSection); Section previousSection = new Section(body, SWT.NONE, context); build(previousSection, previousUiProvider, previousNode); - previousSection.setLayoutData(CmsUiUtils.coversAll()); + previousSection.setLayoutData(CmsUiUtils.coverAll()); // sections.remove(currentSection); sections.add(currentIndex + 1, previousSection); // sections.add(currentSection);