package org.argeo.cms.ui.internal;
-import org.argeo.cms.CmsStyles;
-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;
// 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();
}
}
}
- public static NodeState getNodeState() {
+ public static CmsState getNodeState() {
return nodeState.getService();
}
}