Fix various RAP lifecycle issues
[lgpl/argeo-commons.git] / security / plugins / org.argeo.security.ui.rap / src / main / java / org / argeo / security / ui / rap / RapSecureWorkbenchWindowAdvisor.java
index 805dcf16841757ff3aa838e278b5d1f9a91e2edd..2875aa3ecec4d5578afdcd93d62461a54479efef 100644 (file)
@@ -30,7 +30,7 @@ public class RapSecureWorkbenchWindowAdvisor extends
                // Full screen, see
                // http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02697.html
                configurer.setShellStyle(SWT.NONE);
-               Rectangle bounds = Display.getDefault().getBounds();
+               Rectangle bounds = Display.getCurrent().getBounds();
                configurer.setInitialSize(new Point(bounds.width, bounds.height));
        }