public void preWindowOpen() {
// logger.debug("window pre-open");
PlatformUI.getPreferenceStore().setValue(IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);
IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
// get window size
int width = 1024;
try {
// width = Integer.parseInt(preferences.getValue(IPreferenceConstants.DEFAULT_WINDOW_WIDTH).getValue());
// logger.trace("width: " + width);
}
catch(Exception e) {
// ignore
}
int height = 768;
try {
// height = Integer.parseInt(preferences.getValue(IPreferenceConstants.DEFAULT_WINDOW_HEIGHT).getValue());
// logger.trace("height: " + height);
}
catch(Exception e) {
// ignore
}
configurer.setInitialSize(new Point(width, height));
// configurer.setShowCoolBar(true);
// configurer.setShowStatusLine(true);
// configurer.setShowProgressIndicator(true);
}