From 1ccaee68474946e2509854a62b6d7e380bca6e7c Mon Sep 17 00:00:00 2001 From: Andreas Abraham Date: Thu, 12 Nov 2020 16:19:52 +0100 Subject: Fixed Naming in Signature Profile Names --- .../src/main/java/at/asit/pdfover/gui/Constants.java | 18 +++++++++--------- .../workflow/config/ConfigurationContainerImpl.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java index cbfd8e24..d6f83973 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Constants.java @@ -60,9 +60,9 @@ public class Constants { public static final Locale[] SUPPORTED_LOCALES = { Locale.GERMAN, Locale.ENGLISH }; public static enum PROFILE { - SIGNATUREBLOCK_NORMAL("Signaturblock Normal") , //$NON-NLS-1$ - SIGNATUREBLOCK_SMALL("Signaturblock Klein"), //$NON-NLS-1$ - AMTSSIGNATUREBLOCK("Amtssignatur"), //$NON-NLS-1$ + SIGNATURBLOCK("Signaturblock Normal") , //$NON-NLS-1$ + SIGNATURBLOCK_SMALL("Signaturblock Klein"), //$NON-NLS-1$ + AMTSSIGNATURBLOCK("Amtssignatur"), //$NON-NLS-1$ LOGO_ONLY("Nur Bildmarke"), //$NON-NLS-1$ INVISIBLE("Unsichtbar"); @@ -96,12 +96,12 @@ public class Constants { } public static PROFILE getProfile(String profile) { - if (SIGNATUREBLOCK_NORMAL.getName().equals(profile)) { - return SIGNATUREBLOCK_NORMAL; - } else if (SIGNATUREBLOCK_SMALL.getName().equals(profile)) { - return SIGNATUREBLOCK_SMALL; - } else if (AMTSSIGNATUREBLOCK.getName().equals(profile)) { - return AMTSSIGNATUREBLOCK; + if (SIGNATURBLOCK.getName().equals(profile)) { + return SIGNATURBLOCK; + } else if (SIGNATURBLOCK_SMALL.getName().equals(profile)) { + return SIGNATURBLOCK_SMALL; + } else if (AMTSSIGNATURBLOCK.getName().equals(profile)) { + return AMTSSIGNATURBLOCK; } else if (LOGO_ONLY.getName().equals(profile)) { return LOGO_ONLY; } else if (INVISIBLE.getName().equals(profile)){ diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java index 32b5ece3..300e2df1 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigurationContainerImpl.java @@ -731,7 +731,7 @@ public class ConfigurationContainerImpl implements ConfigurationContainer { @Override public PROFILE getSignatureProfile() { if (this.signatureProfile == null) { - this.signatureProfile = PROFILE.SIGNATUREBLOCK_NORMAL; + this.signatureProfile = PROFILE.SIGNATURBLOCK; } return this.signatureProfile; } -- cgit v1.2.3