this.setLayout(CmsUiUtils.noSpaceGridLayout());
header = new Composite(this, SWT.NONE);
+ header.setLayout(CmsUiUtils.noSpaceGridLayout());
CmsUiUtils.style(header, SuiteStyle.header);
header.setLayoutData(CmsUiUtils.fillWidth());
dynamicArea = new Composite(belowHeader, SWT.NONE);
}
leadPane.setLayoutData(CmsUiUtils.fillHeight());
+ leadPane.setLayout(CmsUiUtils.noSpaceGridLayout());
CmsUiUtils.style(leadPane, SuiteStyle.leadPane);
- dynamicArea.setLayoutData(CmsUiUtils.fillAll());
+ dynamicArea.setLayoutData(CmsUiUtils.fillAll());
dynamicArea.setLayout(new FormLayout());
} else {
Composite toShow = getLayer(layerId, context);
if (toShow != null) {
currentLayerId = layerId;
- if (!isDisposed())
- getDisplay().syncExec(() -> {
- if (!toShow.isDisposed())
- toShow.moveAbove(null);
- else
- log.warn("Cannot show work area because it is disposed.");
- dynamicArea.layout(true, true);
- });
+ if (!isDisposed()) {
+// getDisplay().syncExec(() -> {
+ if (!toShow.isDisposed()) {
+ toShow.moveAbove(null);
+ } else {
+ log.warn("Cannot show work area because it is disposed.");
+ toShow = initLayer(layerId, layers.get(layerId), context);
+ toShow.moveAbove(null);
+ }
+ dynamicArea.layout(true, true);
+// });
+ }
return toShow;
} else {
return current;