summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-16 12:12:11 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-11-16 12:12:11 +0100
commit41a1bc68b5b24f323aa89e39ec586b3c02935bee (patch)
treed1fdec6c0b8b2c3f59015246c72cbb2957f7cfaa /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
parent9a705e911485af200937ed4fbbd216f1ecefdea2 (diff)
downloadpdf-over-41a1bc68b5b24f323aa89e39ec586b3c02935bee.tar.gz
pdf-over-41a1bc68b5b24f323aa89e39ec586b3c02935bee.tar.bz2
pdf-over-41a1bc68b5b24f323aa89e39ec586b3c02935bee.zip
replace String.format(Messages.getString with Messages.formatString(
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
index bb21d4b6..96dc3982 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/OutputComposite.java
@@ -295,7 +295,7 @@ public class OutputComposite extends StateComposite {
if (targetFile.exists()) {
Dialog dialog = new Dialog(getShell(), Messages.getString("common.warning"),
- String.format(Messages.getString("output.file_ask_overwrite"), targetFile.getName()),
+ Messages.formatString("output.file_ask_overwrite", targetFile.getName()),
BUTTONS.OK_CANCEL, ICON.QUESTION);
if (dialog.open() == SWT.CANCEL)
{
@@ -316,7 +316,7 @@ public class OutputComposite extends StateComposite {
} catch (FileNotFoundException e) {
log.warn("Failed to open output file", e);
ErrorDialog dialog = new ErrorDialog(getShell(),
- String.format(Messages.getString("output.save_failed"),
+ Messages.formatString("output.save_failed",
targetFile.getName(), e.getLocalizedMessage()),
BUTTONS.RETRY_CANCEL);
if (dialog.open() == SWT.CANCEL)
@@ -325,7 +325,7 @@ public class OutputComposite extends StateComposite {
} catch (IOException e) {
log.error("I/O Error", e);
ErrorDialog dialog = new ErrorDialog(getShell(),
- String.format(Messages.getString("output.save_failed"),
+ Messages.formatString("output.save_failed",
targetFile.getName(), e.getLocalizedMessage()),
BUTTONS.RETRY_CANCEL);
if (dialog.open() == SWT.CANCEL)
@@ -412,7 +412,7 @@ public class OutputComposite extends StateComposite {
} catch (IOException ex) {
log.error("OpenSelectionListener: ", ex);
ErrorDialog error = new ErrorDialog(getShell(),
- String.format(Messages.getString("error.FailedToOpenDocument"),
+ Messages.formatString("error.FailedToOpenDocument",
ex.getLocalizedMessage()), BUTTONS.RETRY_CANCEL);
if (error.open() == SWT.RETRY)
widgetSelected(e);