Friday, 8 January 2016

Open Eclipse RCP application as maximized

Open Eclipse RCP application as maximized

Open File :

ApplicationWorkbenchWindowAdvisor.java in you RCP application and override the method "postWindowOpen()" and write the code as mentioned below :

@Override
 public void postWindowOpen() {
  super.postWindowOpen();
  IWorkbenchWindowConfigurer configurer = getWindowConfigurer();

  configurer.getWindow().getShell().setMaximized( true );
 }

Following Books are good to refer :