summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java8
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java46
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java18
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java20
4 files changed, 46 insertions, 46 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
index 2582cf17..9134e490 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AboutComposite.java
@@ -126,10 +126,10 @@ public class AboutComposite extends ConfigurationCompositeBase {
*/
@Override
public void reloadResources() {
- this.lnkAbout.setText(Messages.getString("config.AboutText"));
- this.lblDataProtection.setText(Messages.getString("config.DataProtection"));
- this.lnkDataProtection.setText(Messages.getString("config.DataProtectionStatement"));
- this.btnOpenLogDirectory.setText(Messages.getString("config.ShowLogDirectory"));
+ SWTUtils.setLocalizedText(lnkAbout, "config.AboutText");
+ SWTUtils.setLocalizedText(lblDataProtection, "config.DataProtection");
+ SWTUtils.setLocalizedText(lnkDataProtection, "config.DataProtectionStatement");
+ SWTUtils.setLocalizedText(btnOpenLogDirectory, "config.ShowLogDirectory");
}
@Override
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
index 66ad128a..1deb0cf1 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/AdvancedConfigurationComposite.java
@@ -829,53 +829,53 @@ public class AdvancedConfigurationComposite extends ConfigurationCompositeBase {
*/
@Override
public void reloadResources() {
- this.grpSignatur.setText(Messages.getString("advanced_config.Signature_Title"));
- this.btnAutomatischePositionierung.setText(Messages.getString("advanced_config.AutoPosition"));
+ SWTUtils.setLocalizedText(grpSignatur, "advanced_config.Signature_Title");
+ SWTUtils.setLocalizedText(btnAutomatischePositionierung, "advanced_config.AutoPosition");
this.btnAutomatischePositionierung.setToolTipText(Messages.getString("advanced_config.AutoPosition_ToolTip"));
- this.grpPlaceholder.setText(Messages.getString("advanced_config.Placeholder_Title"));
- this.btnPlatzhalterVerwenden.setText(Messages.getString("advanced_config.UseMarker"));
+ SWTUtils.setLocalizedText(grpPlaceholder, "advanced_config.Placeholder_Title");
+ SWTUtils.setLocalizedText(btnPlatzhalterVerwenden, "advanced_config.UseMarker");
this.btnPlatzhalterVerwenden.setToolTipText(Messages.getString("advanced_config.UseMarker_ToolTip"));
- this.btnSignatureFieldsUsage.setText(Messages.getString("advanced_config.UseSignatureFields"));
+ SWTUtils.setLocalizedText(btnSignatureFieldsUsage, "advanced_config.UseSignatureFields");
this.btnSignatureFieldsUsage.setToolTipText(Messages.getString("advanced_config.UseSignatureFields_ToolTip"));
- this.btnEnablePlaceholderUsage.setText(Messages.getString("advanced_config.Placeholder_Enabled"));
- this.btnPdfACompat.setText(Messages.getString("advanced_config.PdfACompat"));
+ SWTUtils.setLocalizedText(btnEnablePlaceholderUsage, "advanced_config.Placeholder_Enabled");
+ SWTUtils.setLocalizedText(btnPdfACompat, "advanced_config.PdfACompat");
this.btnPdfACompat.setToolTipText(Messages.getString("advanced_config.PdfACompat_ToolTip"));
- this.lblTransparenz.setText(Messages.getString("advanced_config.SigPHTransparency"));
- this.lblTransparenzLinks.setText(Messages.getString("advanced_config.SigPHTransparencyMin"));
- this.lblTransparenzRechts.setText(Messages.getString("advanced_config.SigPHTransparencyMax"));
+ SWTUtils.setLocalizedText(lblTransparenz, "advanced_config.SigPHTransparency");
+ SWTUtils.setLocalizedText(lblTransparenzLinks, "advanced_config.SigPHTransparencyMin");
+ SWTUtils.setLocalizedText(lblTransparenzRechts, "advanced_config.SigPHTransparencyMax");
this.sclTransparenz.setToolTipText(Messages.getString("advanced_config.SigPHTransparencyTooltip"));
- this.grpBkuAuswahl.setText(Messages.getString("advanced_config.BKUSelection_Title"));
+ SWTUtils.setLocalizedText(grpBkuAuswahl, "advanced_config.BKUSelection_Title");
this.cmbBKUAuswahl.setToolTipText(Messages.getString("advanced_config.BKUSelection_ToolTip"));
- this.btnKeystoreEnabled.setText(Messages.getString("advanced_config.KeystoreEnabled"));
+ SWTUtils.setLocalizedText(btnKeystoreEnabled, "advanced_config.KeystoreEnabled");
this.btnKeystoreEnabled.setToolTipText(Messages.getString("advanced_config.KeystoreEnabled_ToolTip"));
- this.grpSpeicherort.setText(Messages.getString("advanced_config.OutputFolder_Title"));
- this.lblDefaultOutputFolder.setText(Messages.getString("advanced_config.OutputFolder"));
+ SWTUtils.setLocalizedText(grpSpeicherort, "advanced_config.OutputFolder_Title");
+ SWTUtils.setLocalizedText(lblDefaultOutputFolder, "advanced_config.OutputFolder");
this.txtOutputFolder.setToolTipText(Messages.getString("advanced_config.OutputFolder_ToolTip"));
- this.btnBrowse.setText(Messages.getString("common.browse"));
+ SWTUtils.setLocalizedText(btnBrowse, "common.browse");
- this.grpLocaleAuswahl.setText(Messages.getString("advanced_config.LocaleSelection_Title"));
+ SWTUtils.setLocalizedText(grpLocaleAuswahl, "advanced_config.LocaleSelection_Title");
this.cmbLocaleAuswahl.setToolTipText(Messages.getString("advanced_config.LocaleSelection_ToolTip"));
- this.grpUpdateCheck.setText(Messages.getString("advanced_config.UpdateCheck_Title"));
- this.btnUpdateCheck.setText(Messages.getString("advanced_config.UpdateCheck"));
+ SWTUtils.setLocalizedText(grpUpdateCheck, "advanced_config.UpdateCheck_Title");
+ SWTUtils.setLocalizedText(btnUpdateCheck, "advanced_config.UpdateCheck");
this.btnUpdateCheck.setToolTipText(Messages.getString("advanced_config.UpdateCheck_ToolTip"));
- this.grpProxy.setText(Messages.getString("advanced_config.Proxy_Title"));
- this.lblProxyHost.setText(Messages.getString("advanced_config.ProxyHost"));
+ SWTUtils.setLocalizedText(grpProxy, "advanced_config.Proxy_Title");
+ SWTUtils.setLocalizedText(lblProxyHost, "advanced_config.ProxyHost");
this.txtProxyHost.setToolTipText(Messages.getString("advanced_config.ProxyHost_ToolTip"));
this.txtProxyHost.setMessage(Messages.getString("advanced_config.ProxyHost_Template"));
- this.lblProxyPort.setText(Messages.getString("advanced_config.ProxyPort"));
+ SWTUtils.setLocalizedText(lblProxyPort, "advanced_config.ProxyPort");
this.txtProxyPort.setToolTipText(Messages.getString("advanced_config.ProxyPort_ToolTip"));
this.txtProxyPort.setMessage(Messages.getString("advanced_config.ProxyPort_Template"));
- // this.lblProxyUser.setText(Messages.getString("advanced_config.ProxyUser"));
+ // StateComposite.setLocalizedText(lblProxyUser, "advanced_config.ProxyUser");
// this.txtProxyUser.setToolTipText(Messages
// .getString("advanced_config.ProxyUser_ToolTip"));
// this.txtProxyUser.setMessage(Messages
// .getString("advanced_config.ProxyUser_Template"));
- // this.lblProxyPass.setText(Messages.getString("advanced_config.ProxyPass"));
+ // StateComposite.setLocalizedText(lblProxyPass, "advanced_config.ProxyPass");
// this.txtProxyPass.setToolTipText(Messages
// .getString("advanced_config.ProxyPass_ToolTip"));
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
index 1d1efb06..d8c40ed1 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/KeystoreConfigurationComposite.java
@@ -577,21 +577,21 @@ public class KeystoreConfigurationComposite extends ConfigurationCompositeBase {
@Override
public void reloadResources() {
- this.grpKeystore.setText(Messages.getString("keystore_config.Keystore_Title"));
- this.lblKeystoreFile.setText(Messages.getString("keystore_config.KeystoreFile"));
- this.btnBrowse.setText(Messages.getString("common.browse"));
+ SWTUtils.setLocalizedText(grpKeystore, "keystore_config.Keystore_Title");
+ SWTUtils.setLocalizedText(lblKeystoreFile, "keystore_config.KeystoreFile");
+ SWTUtils.setLocalizedText(btnBrowse, "common.browse");
this.txtKeystoreFile.setToolTipText(Messages.getString("keystore_config.KeystoreFile_ToolTip"));
- this.lblKeystoreType.setText(Messages.getString("keystore_config.KeystoreType"));
+ SWTUtils.setLocalizedText(lblKeystoreType, "keystore_config.KeystoreType");
reloadKeystoreTypeStrings();
- this.lblKeystorePassStoreType.setText(Messages.getString("keystore_config.SaveToWhere.Header"));
+ SWTUtils.setLocalizedText(lblKeystorePassStoreType, "keystore_config.SaveToWhere.Header");
reloadKeystorePassStorageTypeStrings();
this.cmbKeystoreType.setItems(this.keystoreTypes.keySet().toArray(new String[0]));
- this.lblKeystoreStorePass.setText(Messages.getString("keystore_config.KeystoreStorePass"));
+ SWTUtils.setLocalizedText(lblKeystoreStorePass, "keystore_config.KeystoreStorePass");
this.txtKeystoreStorePass.setToolTipText(Messages.getString("keystore_config.KeystoreStorePass_ToolTip"));
- this.btnLoad.setText(Messages.getString("keystore_config.Load"));
+ SWTUtils.setLocalizedText(btnLoad, "keystore_config.Load");
this.btnLoad.setToolTipText(Messages.getString("keystore_config.Load_ToolTip"));
- this.lblKeystoreAlias.setText(Messages.getString("keystore_config.KeystoreAlias"));
- this.lblKeystoreKeyPass.setText(Messages.getString("keystore_config.KeystoreKeyPass"));
+ SWTUtils.setLocalizedText(lblKeystoreAlias, "keystore_config.KeystoreAlias");
+ SWTUtils.setLocalizedText(lblKeystoreKeyPass, "keystore_config.KeystoreKeyPass");
this.txtKeystoreKeyPass.setToolTipText(Messages.getString("keystore_config.KeystoreKeyPass_ToolTip"));
}
}
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index 9aedf686..5e5895ff 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -644,23 +644,23 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
*/
@Override
public void reloadResources() {
- this.grpHandySignatur.setText(Messages.getString("simple_config.MobileBKU_Title"));
- this.lblMobileNumber.setText(Messages.getString("simple_config.PhoneNumber"));
+ SWTUtils.setLocalizedText(grpHandySignatur, "simple_config.MobileBKU_Title");
+ SWTUtils.setLocalizedText(lblMobileNumber, "simple_config.PhoneNumber");
this.txtMobileNumber.setToolTipText(Messages.getString("simple_config.ExampleNumber_ToolTip"));
this.txtMobileNumber.setMessage(Messages.getString("simple_config.ExampleNumber"));
- this.grpPreview.setText(Messages.getString("simple_config.Preview_Title"));
- this.btnClearImage.setText(Messages.getString("simple_config.ClearEmblem"));
- this.btnBrowseLogo.setText(Messages.getString("simple_config.ReplaceEmblem"));
- this.grpSignatureNote.setText(Messages.getString("simple_config.Note_Title"));
- this.lblSignatureNote.setText(Messages.getString("simple_config.Note"));
+ SWTUtils.setLocalizedText(grpPreview, "simple_config.Preview_Title");
+ SWTUtils.setLocalizedText(btnClearImage, "simple_config.ClearEmblem");
+ SWTUtils.setLocalizedText(btnBrowseLogo, "simple_config.ReplaceEmblem");
+ SWTUtils.setLocalizedText(grpSignatureNote, "simple_config.Note_Title");
+ SWTUtils.setLocalizedText(lblSignatureNote, "simple_config.Note");
this.txtSignatureNote.setToolTipText(Messages.getString("simple_config.Note_Tooltip"));
- this.btnSignatureNoteDefault.setText(Messages.getString("simple_config.Note_SetDefault"));
+ SWTUtils.setLocalizedText(btnSignatureNoteDefault, "simple_config.Note_SetDefault");
- this.grpSignatureLang.setText(Messages.getString("simple_config.SigBlockLang_Title"));
+ SWTUtils.setLocalizedText(grpSignatureLang, "simple_config.SigBlockLang_Title");
this.cmbSignatureLang.setToolTipText(Messages.getString("simple_config.SigBlockLang_ToolTip"));
- this.grpSignatureProfile.setText(Messages.getString("simple_config.SigProfile_Title"));
+ SWTUtils.setLocalizedText(grpSignatureProfile, "simple_config.SigProfile_Title");
this.cmbSignatureProfiles.setItems(Arrays.stream(Profile.values()).map(v -> Messages.getString("simple_config."+v.name())).toArray(String[]::new));
}
}