@Override public void createWidget(MUIElement element, MElementContainer<MUIElement> parent) { if (element instanceof MWindow) { MWindow mWindow = (MWindow) element; Shell shell = new Shell(Display.getCurrent()); shell.setText(mWindow.getLabel()); shell.setLayout(new SimpleTrimLayout()); shell.setBounds(mWindow.getX(), mWindow.getY(), mWindow.getWidth(), mWindow.getHeight()); mWindow.getContext().set(Shell.class, shell); element.setWidget(shell); } }