1

I want to fixed the workbench and appear the weclome page everytime full screen.

But when I call the method layout.setfixed(true) in the Class Perspective the welcom page can't be full screen.

Glen Song
  • 11
  • 3

2 Answers2

2

To open in full screen, following code in postWindowOpen() method of WorkbenchWindowAdvisor class can be used

getWindowConfigurer().getWindow().getShell().setMaximized( true );
DaveShaw
  • 52,123
  • 16
  • 112
  • 141
Sandeep Yohans
  • 929
  • 1
  • 14
  • 36
0

You could do this in the preWindowOpen-method of the WorkbenchWindowAdvisor:

 public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
     ...
     public void preWindowOpen() {
        ...
        PlatformUI.getPreferenceStore()
              .setValue(IWorkbenchPreferenceConstants.SHOW_INTRO, true);
     }

This will show the welcome page everytime in full screen size when the application is started.

Michael
  • 4,722
  • 6
  • 37
  • 58
  • Yes I tried it in a project and it works quite fine. Do you have configured the extension points "org.eclipse.ui.intro" and "org.eclipse.ui.intro.config"? – Michael Jan 03 '12 at 11:26