summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at
diff options
context:
space:
mode:
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();
}