From 24b0a95d075605ab692e04b7e70f29e525006bbb Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sat, 26 Feb 2022 06:53:22 +0100 Subject: [PATCH] Adapt to changes in CmsLogin --- .../src/org/argeo/cms/e4/rcp/CmsE4Application.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } - } -- 2.30.2