From: Mathieu Baudier Date: Sat, 26 Feb 2022 05:53:22 +0000 (+0100) Subject: Adapt to changes in CmsLogin X-Git-Tag: argeo-commons-2.3.5~4 X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=24b0a95d075605ab692e04b7e70f29e525006bbb Adapt to changes in CmsLogin --- diff --git a/rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java b/rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java index 629da60aa..a708af13f 100644 --- a/rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java +++ b/rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java @@ -33,11 +33,11 @@ public class CmsE4Application implements IApplication, CmsView { public Object start(IApplicationContext context) throws Exception { // TODO wait for CMS to be ready Thread.sleep(5000); - + uid = UUID.randomUUID().toString(); Subject subject = new Subject(); Display display = createDisplay(); - CmsLoginShell loginShell = new CmsLoginShell(this); + CmsLoginShell loginShell = new CmsLoginShell(this, null); // TODO customize CmsLoginShell to be smaller and centered loginShell.setSubject(subject); try { @@ -83,7 +83,7 @@ public class CmsE4Application implements IApplication, CmsView { // } uxContext = new SimpleSwtUxContext(); - //UiContext.setData(CmsView.KEY, this); + // UiContext.setData(CmsView.KEY, this); CmsSwtUtils.registerCmsView(loginShell.getShell(), this); e4Application = getApplication(null); Object res = Subject.doAs(subject, new PrivilegedExceptionAction() { @@ -204,5 +204,4 @@ public class CmsE4Application implements IApplication, CmsView { return uid; } - }