Massive Argeo APIs refactoring
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / internal / Activator.java
index 410498725a2a78ac304abba03412543b752eb9ff..e10da3aedb534d32fd074e81ffa7a9a3b9618bdf 100644 (file)
@@ -1,10 +1,6 @@
 package org.argeo.cms.ui.internal;
 
-import org.argeo.cms.maintenance.MaintenanceUi;
-import org.argeo.cms.ui.internal.rwt.UserUi;
-import org.argeo.node.NodeState;
-import org.argeo.util.LangUtils;
-import org.eclipse.rap.rwt.application.ApplicationConfiguration;
+import org.argeo.api.cms.CmsState;
 import org.osgi.framework.BundleActivator;
 import org.osgi.framework.BundleContext;
 import org.osgi.util.tracker.ServiceTracker;
@@ -14,16 +10,16 @@ public class Activator implements BundleActivator {
        // avoid dependency to RWT OSGi
        private final static String CONTEXT_NAME_PROP = "contextName";
 
-       private static ServiceTracker<NodeState, NodeState> nodeState;
+       private static ServiceTracker<CmsState, CmsState> nodeState;
 
        // @Override
        public void start(BundleContext bc) throws Exception {
                // UI
-               bc.registerService(ApplicationConfiguration.class, new MaintenanceUi(),
-                               LangUtils.init(CONTEXT_NAME_PROP, "system"));
-               bc.registerService(ApplicationConfiguration.class, new UserUi(), LangUtils.init(CONTEXT_NAME_PROP, "user"));
+//             bc.registerService(ApplicationConfiguration.class, new MaintenanceUi(),
+//                             LangUtils.dico(CONTEXT_NAME_PROP, "system"));
+//             bc.registerService(ApplicationConfiguration.class, new UserUi(), LangUtils.dico(CONTEXT_NAME_PROP, "user"));
 
-               nodeState = new ServiceTracker<>(bc, NodeState.class, null);
+               nodeState = new ServiceTracker<>(bc, CmsState.class, null);
                nodeState.open();
        }
 
@@ -35,7 +31,7 @@ public class Activator implements BundleActivator {
                }
        }
 
-       public static NodeState getNodeState() {
+       public static CmsState getNodeState() {
                return nodeState.getService();
        }
 }