UI Designer: Nothing displayed in NPM-mode-projects
Rapidclipse project in NPM-mode:
Opening a UI page with the UI Designer doesn’t show the content of the page.
It just shows the DevmodeGizmo. See
The UI Designer starts a DesignerServer. when the underlying Tomcat’s start is called, a callback is sent to the DesignerUI. The the DesignerUI tries to send it’s content to the server, which displays that content.
But with the NPM mode, on Tomcat’s start there are other tasks that are performed (DevModeInitializer: NodeTasks and webpack-dev-server start).
When this tasks are done, the client side is refreshed. But all changes before are lost, and so the content from the DesignerUI, too.
→ Added a delay (“until webpack-dev-server is ready”) before sending the callback from the DesignerServer back to the DesignerUI.