- 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);
+// });
+ }