Login/logout working in new Argeo Suite.
[gpl/argeo-suite.git] / org.argeo.suite.e4.rap / src / org / argeo / suite / e4 / rap / settings / AppDeployer.java
index bb3248838fe71b58baf27703eaa592133f62571a..978a8e2d337ea5a62d424df56620ab16b392e35d 100644 (file)
@@ -7,7 +7,6 @@ import java.util.Map;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.cms.e4.rap.AbstractRapE4App;
-import org.argeo.cms.ui.util.CmsTheme;
 import org.argeo.util.LangUtils;
 import org.eclipse.rap.rwt.application.ApplicationConfiguration;
 import org.osgi.framework.Bundle;
@@ -45,15 +44,15 @@ public class AppDeployer implements ManagedServiceFactory {
        }
 
        protected void deploy(Bundle bundle, Map<String, String> properties) {
-               CmsTheme cmsTheme;
-               if (properties.containsKey(CmsTheme.CMS_THEME_BUNDLE_PROPERTY)) {
-                       String cmsThemeBundle = properties.get(CmsTheme.CMS_THEME_BUNDLE_PROPERTY);
-                       cmsTheme = new CmsTheme(bundleContext, cmsThemeBundle);
-               } else {
-                       cmsTheme = new CmsTheme(bundleContext, CmsTheme.DEFAULT_CMS_THEME_BUNDLE);
-               }
+//             CmsTheme cmsTheme;
+//             if (properties.containsKey(CmsTheme.CMS_THEME_BUNDLE_PROPERTY)) {
+//                     String cmsThemeBundle = properties.get(CmsTheme.CMS_THEME_BUNDLE_PROPERTY);
+//                     cmsTheme = new CmsTheme(bundleContext, cmsThemeBundle);
+//             } else {
+//                     cmsTheme = new CmsTheme(bundleContext, CmsTheme.DEFAULT_CMS_THEME_BUNDLE);
+//             }
 
-               ArgeoRapApp app = new ArgeoRapApp(bundleContext, bundle, cmsTheme);
+               ArgeoRapApp app = new ArgeoRapApp(bundleContext, bundle, null);
 
                Hashtable<String, String> props = new Hashtable<String, String>();
                props.put(AbstractRapE4App.CONTEXT_NAME_PROPERTY, app.getContextName());