private static void readBounds(final Shell shell) { Rectangle bounds = WidgetLCAUtil.readBounds(shell, shell.getBounds()); Object adapter = shell.getAdapter(IShellAdapter.class); IShellAdapter shellAdapter = (IShellAdapter) adapter; shellAdapter.setBounds(bounds); }