summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:07:17 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 19:07:17 +0000
commiteb30fb016d5420c85a3a8a79a5ba261949ec8545 (patch)
tree71391f82a847c7248ec7bc0aa7baa8f32d15a083
parent74a25b86a2dfccfd7fe300971a2542346fb1a397 (diff)
downloadpdf-over-eb30fb016d5420c85a3a8a79a5ba261949ec8545.tar.gz
pdf-over-eb30fb016d5420c85a3a8a79a5ba261949ec8545.tar.bz2
pdf-over-eb30fb016d5420c85a3a8a79a5ba261949ec8545.zip
Attach TabFolder to save/cancel buttons
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@142 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
index 2086ec40..d14c5242 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/ConfigurationComposite.java
@@ -244,21 +244,10 @@ public class ConfigurationComposite extends StateComposite {
advancedCompositeScr.setMinSize(
this.advancedConfigComposite.computeSize(SWT.DEFAULT, SWT.DEFAULT));
- FormData fd_composite = new FormData();
- fd_composite.top = new FormAttachment(0, 5);
- fd_composite.bottom = new FormAttachment(90, -5);
- fd_composite.left = new FormAttachment(0, 5);
- fd_composite.right = new FormAttachment(100, -5);
- this.containerComposite.setLayoutData(fd_composite);
- this.containerComposite.setLayout(this.compositeStack);
- this.compositeStack.topControl = tabFolder;
-
- this.doLayout();
-
Button btnSpeichern = new Button(this, SWT.NONE);
FormData fd_btnSpeichern = new FormData();
- fd_btnSpeichern.right = new FormAttachment(100, -10);
- fd_btnSpeichern.bottom = new FormAttachment(100, -5);
+ fd_btnSpeichern.right = new FormAttachment(100, -5);
+ fd_btnSpeichern.bottom = new FormAttachment(100);
btnSpeichern.setLayoutData(fd_btnSpeichern);
btnSpeichern.addSelectionListener(new SelectionAdapter() {
@Override
@@ -278,7 +267,7 @@ public class ConfigurationComposite extends StateComposite {
Button btnAbbrechen = new Button(this, SWT.NONE);
FormData fd_btnAbrechen = new FormData();
fd_btnAbrechen.right = new FormAttachment(btnSpeichern, -10);
- fd_btnAbrechen.bottom = new FormAttachment(100, -5);
+ fd_btnAbrechen.bottom = new FormAttachment(btnSpeichern, 0, SWT.BOTTOM);
btnAbbrechen.setLayoutData(fd_btnAbrechen);
btnAbbrechen.setText(Messages.getString("common.Cancel")); //$NON-NLS-1$
btnAbbrechen.addSelectionListener(new SelectionAdapter() {
@@ -292,7 +281,18 @@ public class ConfigurationComposite extends StateComposite {
FontData[] fD_btnAbbrechen = btnAbbrechen.getFont().getFontData();
fD_btnAbbrechen[0].setHeight(TEXT_SIZE_BUTTON);
btnAbbrechen.setFont(new Font(Display.getCurrent(), fD_btnAbbrechen[0]));
- }
+
+ FormData fd_composite = new FormData();
+ fd_composite.top = new FormAttachment(0, 5);
+ fd_composite.bottom = new FormAttachment(btnSpeichern, -10);
+ fd_composite.left = new FormAttachment(0, 5);
+ fd_composite.right = new FormAttachment(100, -5);
+ this.containerComposite.setLayoutData(fd_composite);
+ this.containerComposite.setLayout(this.compositeStack);
+ this.compositeStack.topControl = tabFolder;
+
+ this.doLayout();
+}
boolean storeConfiguration() {