From 9aa77463452825ebaf542a42984f8aa14478b729 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Thu, 4 Aug 2022 12:01:57 +0200 Subject: batch replace v2 --- .../src/main/java/at/asit/pdfover/gui/controls/InputDialog.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/InputDialog.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/InputDialog.java index 15625539..4845863f 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/InputDialog.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/InputDialog.java @@ -28,7 +28,7 @@ import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Text; -import at.asit.pdfover.commons.Messages; +import at.asit.pdfover.gui.utils.SWTUtils; /** * @@ -134,7 +134,7 @@ public class InputDialog extends org.eclipse.swt.widgets.Dialog { data.horizontalSpan = 2; text.setLayoutData(data); Button ok = new Button(shell, SWT.PUSH); - ok.setText(Messages.getString("common.Ok")); + SWTUtils.setLocalizedText(ok, "common.Ok"); data = new GridData(GridData.FILL_HORIZONTAL); ok.setLayoutData(data); ok.addSelectionListener(new SelectionAdapter() { @@ -145,7 +145,7 @@ public class InputDialog extends org.eclipse.swt.widgets.Dialog { } }); Button cancel = new Button(shell, SWT.PUSH); - cancel.setText(Messages.getString("common.Cancel")); + SWTUtils.setLocalizedText(cancel, "common.Cancel"); data = new GridData(GridData.FILL_HORIZONTAL); cancel.setLayoutData(data); cancel.addSelectionListener(new SelectionAdapter() { -- cgit v1.2.3