summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-19 10:44:50 +0100
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-19 10:44:50 +0100
commitebade6f73b9e3c1f5c93bb0e1c7b48c47061d104 (patch)
tree5afe830c7688eebfa760424d4437d47c0ece7ea5 /pdf-over-gui/src/main/java/at/asit
parentd3b5b119873b9186857a8c324362437ce3828848 (diff)
downloadpdf-over-ebade6f73b9e3c1f5c93bb0e1c7b48c47061d104.tar.gz
pdf-over-ebade6f73b9e3c1f5c93bb0e1c7b48c47061d104.tar.bz2
pdf-over-ebade6f73b9e3c1f5c93bb0e1c7b48c47061d104.zip
Added English and German values for Signature Profile description
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/SimpleConfigurationComposite.java28
1 files changed, 17 insertions, 11 deletions
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 38f3967b..84078fbf 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
@@ -35,8 +35,6 @@ import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.PaintEvent;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.TraverseEvent;
-import org.eclipse.swt.events.TraverseListener;
import org.eclipse.swt.graphics.Font;
import org.eclipse.swt.graphics.FontData;
import org.eclipse.swt.graphics.Image;
@@ -116,7 +114,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
protected Image logo = null;
protected final Group grpSignatureProfile;
- protected final Combo cmbSingatureProfiles;
+ protected final Combo cmbSignatureProfiles;
@@ -218,26 +216,34 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
fD_grpSignatureProfile[0]));
- this.cmbSingatureProfiles = new Combo(this.grpSignatureProfile, SWT.READ_ONLY);
+ this.cmbSignatureProfiles = new Combo(this.grpSignatureProfile, SWT.READ_ONLY);
FormData fd_cmbSingatureProfiles = new FormData();
fd_cmbSingatureProfiles.left = new FormAttachment(0, 10);
fd_cmbSingatureProfiles.right = new FormAttachment(100, -10);
fd_cmbSingatureProfiles.top = new FormAttachment(0, 10);
fd_cmbSingatureProfiles.bottom = new FormAttachment(100, -10);
- this.cmbSingatureProfiles.setLayoutData(fd_cmbSingatureProfiles);
+ this.cmbSignatureProfiles.setLayoutData(fd_cmbSingatureProfiles);
- FontData[] fD_cmbSignatureProfile = this.cmbSingatureProfiles.getFont()
+ FontData[] fD_cmbSignatureProfile = this.cmbSignatureProfiles.getFont()
.getFontData();
fD_cmbSignatureProfile[0].setHeight(Constants.TEXT_SIZE_NORMAL);
- this.cmbSingatureProfiles.setFont(new Font(Display.getCurrent(),
+ this.cmbSignatureProfiles.setFont(new Font(Display.getCurrent(),
fD_cmbSignatureProfile[0]));
- this.cmbSingatureProfiles.setItems(Profile.getProfileStrings());
- this.cmbSingatureProfiles.addSelectionListener(new SelectionAdapter() {
+
+ String[] items = new String[Profile.values().length];
+ int i = 0;
+ for (Profile profile : Profile.values()) {
+ items[i] = Messages.getString("simple_config." + profile.name());
+ i++;
+ }
+
+ this.cmbSignatureProfiles.setItems(items);
+ this.cmbSignatureProfiles.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Profile current = SimpleConfigurationComposite.this.configurationContainer.getSignatureProfile();
- Profile selected = Profile.getProfileByIndex(SimpleConfigurationComposite.this.cmbSingatureProfiles
+ Profile selected = Profile.getProfileByIndex(SimpleConfigurationComposite.this.cmbSignatureProfiles
.getSelectionIndex());
if (!current.equals(selected)) {
preformProfileSelectionChanged(selected);
@@ -731,7 +737,7 @@ public class SimpleConfigurationComposite extends BaseConfigurationComposite {
void preformProfileSelectionChanged(Profile selected) {
log.debug("Signature Profile {} was selected", selected.getName()); //$NON-NLS-1$
this.configurationContainer.setSignatureProfile(selected);
- this.cmbSingatureProfiles.select(selected.ordinal());
+ this.cmbSignatureProfiles.select(selected.ordinal());
if (selected.equals(Profile.AMTSSIGNATURBLOCK)){
this.configurationContainer.setDefaultSignaturePosition(new SignaturePosition());