Reputation: 342
I have to develop a simple Eclipse based application. I use Luna Eclipse RCP IDE(4.4). I would like are there declarative way to start my application with maximized size of main windows.
Thanks in advance
Upvotes: 3
Views: 1585
Reputation: 8100
You can do it in the org.eclipse.ui.application.WorkbenchWindowAdvisor
. You should find your WorkbenchWindowAdvisor
in the bundle where the org.eclipse.core.runtime.applications
is declared. The default name is ApplicationNameWorkbenchWindowAdvisor
where ApplicationName
is the name of your application. If you can not find it look your application class there is a createWorkbenchWindowAdvisor()
.
@Override
public void postWindowCreate() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
IWorkbenchWindow window = configurer.getWindow();
window.getShell().setMaximized(true);
}
Upvotes: 3