SWT product ignoring initial size and save and restore [message #1221745] |
Wed, 18 December 2013 05:49  |
Eclipse User |
|
|
|
Hi,
I am using Scout 3.9 with the SWT product as my target. I have the initial size set to 400, 700 in the preWinowOpen, see below. This is basically ignored. I can put any values in here and it always comes up the same size.
Also I have tried removing this initial size and using the SWT save and restore set true. This also has no effect, the application always comes up the same size.
Any pointers??
/Dominic
@Override
public void preWindowOpen() {
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
configurer.setInitialSize(new Point(400, 700));
configurer.setShowCoolBar(ApplicationActionBarAdvisor.NUM_OUTLINE_BUTTONS > 0);
configurer.setShowStatusLine(true);
configurer.setShowProgressIndicator(true);
configurer.setShowMenuBar(true);
configurer.setShowPerspectiveBar(false);
configurer.setShowFastViewBars(false);
}
@Override
public void initialize(IWorkbenchConfigurer configurer) {
super.initialize(configurer);
configurer.setExitOnLastWindowClose(false);
configurer.setSaveAndRestore(true);
}
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27109 seconds