From adf0955c1ae19d86f81fad5d280c820b7dc8d158 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sun, 17 Mar 2013 15:41:38 +0000 Subject: [PATCH] Merge fix for RAP browser window resize https://www.argeo.org/bugzilla/show_bug.cgi?id=137 git-svn-id: https://svn.argeo.org/commons/branches/1.x@6152 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../argeo/security/ui/rap/RapWindowAdvisor.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapWindowAdvisor.java b/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapWindowAdvisor.java index d5c2442f1..1f5d56792 100644 --- a/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapWindowAdvisor.java +++ b/security/plugins/org.argeo.security.ui.rap/src/main/java/org/argeo/security/ui/rap/RapWindowAdvisor.java @@ -16,6 +16,7 @@ package org.argeo.security.ui.rap; import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.graphics.Point; import org.eclipse.swt.graphics.Rectangle; import org.eclipse.swt.widgets.Display; @@ -50,14 +51,20 @@ public class RapWindowAdvisor extends WorkbenchWindowAdvisor { configurer.setShowMenuBar(false); configurer.setShowStatusLine(false); configurer.setShowPerspectiveBar(true); - configurer.setTitle("Argeo Secure UI"); //$NON-NLS-1$ - // Full screen, see - // http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg02697.html - configurer.setShellStyle(SWT.NONE); + configurer.setTitle("Argeo Web UI"); //$NON-NLS-1$ + // Full screen, see + // http://wiki.eclipse.org/RAP/FAQ#How_to_create_a_fullscreen_application + configurer.setShellStyle(SWT.NO_TRIM); Rectangle bounds = Display.getCurrent().getBounds(); configurer.setInitialSize(new Point(bounds.width, bounds.height)); } + @Override + public void postWindowCreate() { + Shell shell = getWindowConfigurer().getWindow().getShell(); + shell.setMaximized(true); + } + @Override public void postWindowOpen() { String defaultPerspective = getWindowConfigurer() -- 2.30.2