summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-23 16:02:25 +0100
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-23 16:02:25 +0100
commit42fde29384da03043bcf7710b4983fa4f5836ae8 (patch)
treee707ba4fad2d74540ac6fe07a5b9e7012e36c3aa /pdf-over-gui/src/main/java/at
parentccd49455bfc3b98c60e2db940dc5d368e951ac97 (diff)
downloadpdf-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/at')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java2
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java13
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/config/ConfigProviderImpl.java2
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();
}