Adapt to changes in CmsLogin
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 26 Feb 2022 05:53:22 +0000 (06:53 +0100)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 26 Feb 2022 05:53:22 +0000 (06:53 +0100)
rcp/org.argeo.cms.e4.rcp/src/org/argeo/cms/e4/rcp/CmsE4Application.java

index 629da60aae8eefae2871ada690bcfe1ab582eb9f..a708af13f2bf7e59a025f51aeb7734ffdc149420 100644 (file)
@@ -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<Object>() {
@@ -204,5 +204,4 @@ public class CmsE4Application implements IApplication, CmsView {
                return uid;
        }
 
-       
 }