diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-23 16:02:25 +0100 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2020-11-23 16:02:25 +0100 |
commit | 42fde29384da03043bcf7710b4983fa4f5836ae8 (patch) | |
tree | e707ba4fad2d74540ac6fe07a5b9e7012e36c3aa /pdf-over-gui/src/main/java | |
parent | ccd49455bfc3b98c60e2db940dc5d368e951ac97 (diff) | |
download | pdf-over-42fde29384da03043bcf7710b4983fa4f5836ae8.tar.gz pdf-over-42fde29384da03043bcf7710b4983fa4f5836ae8.tar.bz2 pdf-over-42fde29384da03043bcf7710b4983fa4f5836ae8.zip |
change in profile setting
Diffstat (limited to 'pdf-over-gui/src/main/java')
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(); } |