diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-23 16:03:23 +0100 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-23 16:03:23 +0100 |
commit | 9fead182dd9bc31ac532028abd436ab84069b097 (patch) | |
tree | 80d063f6438f53a3f7a9332c62b9ba65d33d97e6 /pdf-over-gui/src/main/java/at | |
parent | 38ca602a7739e8ba957b963992ba073409fdaf29 (diff) | |
parent | 42fde29384da03043bcf7710b4983fa4f5836ae8 (diff) | |
download | pdf-over-9fead182dd9bc31ac532028abd436ab84069b097.tar.gz pdf-over-9fead182dd9bc31ac532028abd436ab84069b097.tar.bz2 pdf-over-9fead182dd9bc31ac532028abd436ab84069b097.zip |
Merge branch 'v4.3.0-rc' into 'master'
change in profile setting
See merge request egiz/pdf-over!4
Diffstat (limited to 'pdf-over-gui/src/main/java/at')
3 files changed, 10 insertions, 7 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java index d2dabc5f..79523afe 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java @@ -975,7 +975,7 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { store.setUpdateCheck(this.configurationContainer.getUpdateCheck()); - store.setSignatureProfile(this.configurationContainer.getSignatureProfile().getName()); + store.setSignatureProfile(this.configurationContainer.getSignatureProfile().name()); String hostOld = provider.getProxyHostPersistent(); String hostNew = this.configurationContainer.getProxyHost(); diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java index 75482b60..10be1500 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java @@ -243,8 +243,11 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { @Override public void widgetSelected(SelectionEvent e) { Profile current = SimpleConfigurationComposite.this.configurationContainer.getSignatureProfile(); - Profile selected = Profile.getProfileByIndex(SimpleConfigurationComposite.this.cmbSignatureProfiles - .getSelectionIndex()); + //Profile selected = Profile.getProfileByIndex(SimpleConfigurationComposite.this.cmbSignatureProfiles + // .getSelectionIndex()); + //TODO to test + int index = SimpleConfigurationComposite.this.cmbSignatureProfiles.getSelectionIndex(); + Profile selected = Profile.values()[index]; if (!current.equals(selected)) { preformProfileSelectionChanged(selected); } @@ -735,7 +738,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { } void preformProfileSelectionChanged(Profile selected) { - log.debug("Signature Profile {} was selected", selected.getName()); //$NON-NLS-1$ + log.debug("Signature Profile {} was selected", selected.name()); //$NON-NLS-1$ this.configurationContainer.setSignatureProfile(selected); this.cmbSignatureProfiles.select(selected.ordinal()); @@ -748,7 +751,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { void setSignatureProfileSetting(){ try { SignatureParameter param = this.signer.getPDFSigner().newParameter(); - param.setSignatureProfile(this.configurationContainer.getSignatureProfile().getName()); + param.setSignatureProfile(this.configurationContainer.getSignatureProfile().name()); } catch (Exception e){ log.debug("Cannot save signature profile {}", e.getMessage()); @@ -879,7 +882,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite { store.setSignatureNote(this.configurationContainer.getSignatureNote()); - store.setSignatureProfile(this.configurationContainer.getSignatureProfile().getName()); + store.setSignatureProfile(this.configurationContainer.getSignatureProfile().name()); } /* diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java index c3a15cb3..a7e6592c 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java @@ -1521,7 +1521,7 @@ public class ConfigProviderImpl implements ConfigProvider, ConfigManipulator, @Override public String getSignatureProfile() { - return this.configurationOverlay.getSignatureProfile().getName(); + return this.configurationOverlay.getSignatureProfile().name(); } |