import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Composite;
-/** The {@link CmsView} for the work ergonomics of Argeo Suite. */
+/** The view for the default ergonomics of Argeo Suite. */
class SuiteUi extends Composite {
private static final long serialVersionUID = 6207018859086689108L;
context = userHome;
}
Composite toShow = getLayer(layer, context);
- getDisplay().syncExec(() -> {
- toShow.moveAbove(null);
- dynamicArea.layout(true, true);
- });
+ if (!isDisposed())
+ getDisplay().syncExec(() -> {
+ toShow.moveAbove(null);
+ dynamicArea.layout(true, true);
+ });
currentLayerId = layer;
return toShow;
}
return sysSession;
}
+ Session getSession(String workspaceName) {
+ if (workspaceName == null)
+ return sysSession;
+ if (NodeConstants.SYS_WORKSPACE.equals(workspaceName))
+ return sysSession;
+ else if (NodeConstants.HOME_WORKSPACE.equals(workspaceName))
+ return homeSession;
+ else
+ throw new IllegalArgumentException("Unknown workspace " + workspaceName);
+ }
+
+ public CmsView getCmsView() {
+ return cmsView;
+ }
+
+
+
}