Improve RCP launch
[lgpl/argeo-commons.git] / swt / rcp / org.argeo.cms.swt.rcp / src / org / argeo / cms / ui / rcp / CmsRcpHttpLauncher.java
index 6246b0d0d13661316f546fb18e9bb74750f4b67f..8b81e6698ff5d5a6d3373ca074702e0dd62d31a9 100644 (file)
@@ -25,6 +25,8 @@ public class CmsRcpHttpLauncher {
        private final static Logger logger = System.getLogger(CmsRcpHttpLauncher.class.getName());
        private CompletableFuture<HttpServer> httpServer = new CompletableFuture<>();
 
+       private CmsRcpDisplayFactory cmsRcpDisplayFactory;
+       
        public void init() {
 
        }
@@ -50,7 +52,7 @@ public class CmsRcpHttpLauncher {
                                        public void handle(HttpExchange exchange) throws IOException {
                                                String path = exchange.getRequestURI().getPath();
                                                String uiName = path != null ? path.substring(path.lastIndexOf('/') + 1) : "";
-                                               CmsRcpDisplayFactory.openCmsApp(cmsApp, uiName, null);
+                                               cmsRcpDisplayFactory.openCmsApp(cmsApp, uiName, null);
                                                exchange.sendResponseHeaders(200, -1);
                                                logger.log(Level.DEBUG, "Opened RCP UI  " + uiName + " of  CMS App /" + contextName);
                                        }