From 1dafb1445de6728a339c9265c678fd2484bd7dc4 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:27:20 +0000 Subject: Make main window size configurable git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@331 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java index 8f670bd3..92688c82 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java @@ -203,7 +203,7 @@ public class MainWindow { */ protected void createContents() { this.shell = new Shell(); - getShell().setSize(Constants.MAINWINDOW_WIDTH, Constants.MAINWINDOW_HEIGHT); + this.shell.setSize(this.stateMachine.getConfigProvider().getMainWindowSize()); try { Display display = Display.getCurrent(); Monitor primary = display.getPrimaryMonitor(); @@ -223,9 +223,9 @@ public class MainWindow { this.shell.setImage(shellicon); - getShell().setLayout(new FormLayout()); + this.shell.setLayout(new FormLayout()); - this.mainbar = new Composite(getShell(), SWT.NONE); + this.mainbar = new Composite(this.shell, SWT.NONE); this.mainbar.setLayout(new FormLayout()); this.mainBarFormData = new FormData(); this.mainBarFormData.left = new FormAttachment(0, 10); @@ -337,7 +337,7 @@ public class MainWindow { this.btn_end.setToolTipText(Messages.getString("main.done")); //$NON-NLS-1$ this.buttonMap.put(Buttons.FINAL, this.btn_end); - this.container = new Composite(getShell(), SWT.RESIZE); + this.container = new Composite(this.shell, SWT.RESIZE); this.containerFormData = new FormData(); this.containerFormData.bottom = new FormAttachment(100, -10); this.containerFormData.right = new FormAttachment(100, -10); -- cgit v1.2.3