diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 11:30:38 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-04 11:30:38 +0200 |
commit | ff345952fc56b38bc27bb66f27f41073a0c46748 (patch) | |
tree | e7bb2513ac42da8bf094e932b1e6c00a98198b01 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | |
parent | 2624ca21244979af6118879dd4fd818f9c0b7383 (diff) | |
download | pdf-over-ff345952fc56b38bc27bb66f27f41073a0c46748.tar.gz pdf-over-ff345952fc56b38bc27bb66f27f41073a0c46748.tar.bz2 pdf-over-ff345952fc56b38bc27bb66f27f41073a0c46748.zip |
batch replace setText -> setLocalizedText
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java index 62b3b090..43e272a2 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/DataSourceSelectComposite.java @@ -46,6 +46,7 @@ import org.slf4j.LoggerFactory; import at.asit.pdfover.commons.Constants; import at.asit.pdfover.commons.Messages; +import at.asit.pdfover.gui.utils.SWTUtils; import at.asit.pdfover.gui.workflow.states.State; /** @@ -263,7 +264,7 @@ public class DataSourceSelectComposite extends StateComposite { FontData[] fD = this.lbl_drag.getFont().getFontData(); fD[0].setHeight(Constants.TEXT_SIZE_BIG); this.lbl_drag.setFont(new Font(Display.getCurrent(), fD[0])); - this.lbl_drag.setText(Messages.getString("dataSourceSelection.DropLabel")); + SWTUtils.setLocalizedText(lbl_drag, "dataSourceSelection.DropLabel"); this.lbl_drag.setAlignment(SWT.CENTER); @@ -281,7 +282,7 @@ public class DataSourceSelectComposite extends StateComposite { this.lbl_drag2.setAlignment(SWT.CENTER); this.btn_open = new Button(this.drop_area, SWT.NATIVE | SWT.RESIZE); - this.btn_open.setText(Messages.getString("dataSourceSelection.browse")); + SWTUtils.setLocalizedText(btn_open, "dataSourceSelection.browse"); FontData[] fD_open = this.btn_open.getFont().getFontData(); fD_open[0].setHeight(Constants.TEXT_SIZE_BUTTON); @@ -356,8 +357,8 @@ public class DataSourceSelectComposite extends StateComposite { */ @Override public void reloadResources() { - this.lbl_drag.setText(Messages.getString("dataSourceSelection.DropLabel")); - this.btn_open.setText(Messages.getString("dataSourceSelection.browse")); - this.lbl_drag2.setText(Messages.getString("dataSourceSelection.DropLabel2")); + SWTUtils.setLocalizedText(lbl_drag, "dataSourceSelection.DropLabel"); + SWTUtils.setLocalizedText(btn_open, "dataSourceSelection.browse"); + SWTUtils.setLocalizedText(lbl_drag2, "dataSourceSelection.DropLabel2"); } } |