summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 11:28:40 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-09 11:28:40 +0200
commit1599d8abfb17c8b700845d020866d0dc5e9acba7 (patch)
tree538370273655b0b71c9549871689d451c81cb0fa
parente5ab5eddbe2a81ffea6c076834e1ff9c29ebce3b (diff)
downloadpdf-over-1599d8abfb17c8b700845d020866d0dc5e9acba7.tar.gz
pdf-over-1599d8abfb17c8b700845d020866d0dc5e9acba7.tar.bz2
pdf-over-1599d8abfb17c8b700845d020866d0dc5e9acba7.zip
readability
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java40
1 files changed, 15 insertions, 25 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 65ebb884..307aa140 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
@@ -137,8 +137,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnAutomatischePositionierung.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performPositionSelection(
- AdvancedConfigurationComposite.this.btnAutomatischePositionierung.getSelection());
+ performPositionSelection(btnAutomatischePositionierung.getSelection());
}
});
@@ -149,8 +148,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnPdfACompat.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this
- .performPdfACompatSelection(AdvancedConfigurationComposite.this.btnPdfACompat.getSelection());
+ performPdfACompatSelection(btnPdfACompat.getSelection());
}
});
@@ -166,9 +164,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnEnablePlaceholderUsage.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performEnableUsePlaceholder(
- AdvancedConfigurationComposite.this.btnEnablePlaceholderUsage.getSelection());
-
+ performEnableUsePlaceholder(btnEnablePlaceholderUsage.getSelection());
}
});
@@ -179,8 +175,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnPlatzhalterVerwenden.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performUseMarkerSelection(
- AdvancedConfigurationComposite.this.btnPlatzhalterVerwenden.getSelection());
+ performUseMarkerSelection(btnPlatzhalterVerwenden.getSelection());
}
});
@@ -191,8 +186,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnSignatureFieldsUsage.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performUseSignatureFieldsSelection(
- AdvancedConfigurationComposite.this.btnSignatureFieldsUsage.getSelection());
+ performUseSignatureFieldsSelection(btnSignatureFieldsUsage.getSelection());
}
});
@@ -211,12 +205,10 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.cmbBKUAuswahl.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- int selectionIndex = getBKUElementIndex(
- AdvancedConfigurationComposite.this.configurationContainer.defaultBKU);
- if (AdvancedConfigurationComposite.this.cmbBKUAuswahl.getSelectionIndex() != selectionIndex) {
- selectionIndex = AdvancedConfigurationComposite.this.cmbBKUAuswahl.getSelectionIndex();
- performBKUSelectionChanged(
- AdvancedConfigurationComposite.this.cmbBKUAuswahl.getItem(selectionIndex));
+ int selectionIndex = getBKUElementIndex(configurationContainer.defaultBKU);
+ if (cmbBKUAuswahl.getSelectionIndex() != selectionIndex) {
+ selectionIndex = cmbBKUAuswahl.getSelectionIndex();
+ performBKUSelectionChanged(cmbBKUAuswahl.getItem(selectionIndex));
}
}
});
@@ -228,8 +220,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnKeystoreEnabled.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performKeystoreEnabledSelection(
- AdvancedConfigurationComposite.this.btnKeystoreEnabled.getSelection());
+ performKeystoreEnabledSelection(btnKeystoreEnabled.getSelection());
}
});
@@ -248,7 +239,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.txtOutputFolder.addFocusListener(new FocusAdapter() {
@Override
public void focusLost(FocusEvent e) {
- performOutputFolderChanged(AdvancedConfigurationComposite.this.txtOutputFolder.getText());
+ performOutputFolderChanged(txtOutputFolder.getText());
}
});
@@ -293,7 +284,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.txtSaveFilePostFix.addFocusListener(new FocusAdapter() {
@Override
public void focusLost(FocusEvent e) {
- performPostFixChanged(AdvancedConfigurationComposite.this.txtSaveFilePostFix.getText());
+ performPostFixChanged(txtSaveFilePostFix.getText());
}
});
@@ -311,9 +302,8 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.cmbLocaleAuswahl.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- Locale currentLocale = AdvancedConfigurationComposite.this.configurationContainer.interfaceLocale;
- Locale selectedLocale = Constants.SUPPORTED_LOCALES[AdvancedConfigurationComposite.this.cmbLocaleAuswahl
- .getSelectionIndex()];
+ Locale currentLocale = configurationContainer.interfaceLocale;
+ Locale selectedLocale = Constants.SUPPORTED_LOCALES[cmbLocaleAuswahl.getSelectionIndex()];
if (!currentLocale.equals(selectedLocale)) {
performLocaleSelectionChanged(selectedLocale);
}
@@ -332,7 +322,7 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
this.btnUpdateCheck.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
- AdvancedConfigurationComposite.this.performUpdateCheckSelection(AdvancedConfigurationComposite.this.btnUpdateCheck.getSelection());
+ performUpdateCheckSelection(btnUpdateCheck.getSelection());
}
});