summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:27:20 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:27:20 +0000
commit1dafb1445de6728a339c9265c678fd2484bd7dc4 (patch)
tree090f99d88e10003bb9efe856303f27c987ab29c4 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java
parentf5776bbea82a2d610f7c088ebb8727288bb55729 (diff)
downloadpdf-over-1dafb1445de6728a339c9265c678fd2484bd7dc4.tar.gz
pdf-over-1dafb1445de6728a339c9265c678fd2484bd7dc4.tar.bz2
pdf-over-1dafb1445de6728a339c9265c678fd2484bd7dc4.zip
Make main window size configurable
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@331 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/MainWindow.java8
1 files changed, 4 insertions, 4 deletions
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);