maximize applicationwindow of an Eclipse-RCP-application
To maximize the mainwindow of an Eclipse-RCP-application at the gun (full screen), the method createWindowContents(..) in the class ApplicationWorkbenchWindowAdvisor must be overwritten.
import org.eclipse.swt.widgets.Shell; import org.eclipse.ui.application.ActionBarAdvisor; import org.eclipse.ui.application.IActionBarConfigurer; import org.eclipse.ui.application.IWorkbenchWindowConfigurer; import org.eclipse.ui.application.WorkbenchWindowAdvisor; public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor { . . . @Override public void createWindowContents(Shell shell) { super.createWindowContents(shell); shell.setMaximized(true); } }
see also: applicationwindow, set size