summaryrefslogtreecommitdiff
path: root/pdf-over-gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 11:23:52 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 11:24:35 +0200
commite5ab5eddbe2a81ffea6c076834e1ff9c29ebce3b (patch)
tree1770bbc20e382c6dd85ffe26c2385e05a23c0da0 /pdf-over-gui
parent62c55801ff972a17f66c0f6fc663c17f64d3ca32 (diff)
downloadpdf-over-e5ab5eddbe2a81ffea6c076834e1ff9c29ebce3b.tar.gz
pdf-over-e5ab5eddbe2a81ffea6c076834e1ff9c29ebce3b.tar.bz2
pdf-over-e5ab5eddbe2a81ffea6c076834e1ff9c29ebce3b.zip
layout boilerplace cleanup
Diffstat (limited to 'pdf-over-gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java29
1 files changed, 9 insertions, 20 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
index f6faf6ae..65ebb884 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
@@ -121,11 +121,12 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.configurationComposite = config;
setLayout(new FormLayout());
+ FormLayout STANDARD_LAYOUT = new FormLayout();
+ STANDARD_LAYOUT.marginHeight = 10;
+ STANDARD_LAYOUT.marginWidth = 5;
+
this.grpSignatur = new Group(this, SWT.NONE);
- FormLayout layout = new FormLayout();
- layout.marginHeight = 10;
- layout.marginWidth = 5;
- this.grpSignatur.setLayout(layout);
+ this.grpSignatur.setLayout(STANDARD_LAYOUT);
SWTUtils.anchor(grpSignatur).top(0,5).right(100,-5).left(0,5).set();
SWTUtils.setFontHeight(grpSignatur, Constants.TEXT_SIZE_NORMAL);
@@ -154,10 +155,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
});
this.grpPlaceholder = new Group(this, SWT.NONE);
- FormLayout layout_grpPlaceholder = new FormLayout();
- layout_grpPlaceholder.marginHeight = 10;
- layout_grpPlaceholder.marginWidth = 5;
- this.grpPlaceholder.setLayout(layout_grpPlaceholder);
+ this.grpPlaceholder.setLayout(STANDARD_LAYOUT);
SWTUtils.anchor(grpPlaceholder).top(grpSignatur, 5).left(0,5).right(100,-5).set();
SWTUtils.setFontHeight(grpPlaceholder, Constants.TEXT_SIZE_NORMAL);
@@ -199,10 +197,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
});
this.grpBkuAuswahl = new Group(this, SWT.NONE);
- layout = new FormLayout();
- layout.marginHeight = 10;
- layout.marginWidth = 5;
- this.grpBkuAuswahl.setLayout(layout);
+ this.grpBkuAuswahl.setLayout(STANDARD_LAYOUT);
SWTUtils.anchor(grpBkuAuswahl).top(grpPlaceholder, 5).left(0,5).right(100,-5).set();
SWTUtils.setFontHeight(grpBkuAuswahl, Constants.TEXT_SIZE_NORMAL);
@@ -303,10 +298,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
});
this.grpLocaleAuswahl = new Group(this, SWT.NONE);
- FormLayout layout_grpLocaleAuswahl = new FormLayout();
- layout_grpLocaleAuswahl.marginHeight = 10;
- layout_grpLocaleAuswahl.marginWidth = 5;
- this.grpLocaleAuswahl.setLayout(layout_grpLocaleAuswahl);
+ this.grpLocaleAuswahl.setLayout(STANDARD_LAYOUT);
SWTUtils.anchor(grpLocaleAuswahl).top(grpSpeicherort, 5).left(0,5).right(100,-5).set();
SWTUtils.setFontHeight(grpLocaleAuswahl, Constants.TEXT_SIZE_NORMAL);
@@ -329,10 +321,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
});
this.grpUpdateCheck = new Group(this, SWT.NONE);
- FormLayout layout_grpUpdateCheck = new FormLayout();
- layout_grpUpdateCheck.marginHeight = 10;
- layout_grpUpdateCheck.marginWidth = 5;
- this.grpUpdateCheck.setLayout(layout_grpUpdateCheck);
+ this.grpUpdateCheck.setLayout(STANDARD_LAYOUT);
SWTUtils.anchor(grpUpdateCheck).top(grpLocaleAuswahl, 5).left(0,5).right(100,-5).set();
SWTUtils.setFontHeight(grpUpdateCheck, Constants.TEXT_SIZE_NORMAL);