From 96a1a5c9d04238c63247794ad9c76e5a2001b8d0 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 18:58:27 +0000 Subject: Moved Mobile BKU URL to configuration file Extracted localizable Strings git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@61 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../main/java/at/asit/pdfover/gui/controls/ErrorDialog.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorDialog.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorDialog.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorDialog.java index c6f7c19a..017de3ef 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorDialog.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/controls/ErrorDialog.java @@ -36,6 +36,8 @@ import org.eclipse.swt.widgets.Shell; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.asit.pdfover.gui.Messages; + /** * */ @@ -87,7 +89,7 @@ public class ErrorDialog extends Dialog { private boolean canRetry = false; - private boolean doRetry = false; + boolean doRetry = false; private String details = null; @@ -140,7 +142,7 @@ public class ErrorDialog extends Dialog { fd_group.top = new FormAttachment(lblerrorMessage, 5); fd_group.left = new FormAttachment(lblErrorImage, 5); group.setLayoutData(fd_group); - group.setText("Details"); + group.setText(Messages.getString("error.Details")); //$NON-NLS-1$ if (!this.canRetry) { @@ -175,7 +177,7 @@ public class ErrorDialog extends Dialog { fd_btnOk.bottom = new FormAttachment(100, -5); fd_btnOk.right = new FormAttachment(100, -5); btnOk.setLayoutData(fd_btnOk); - btnOk.setText("Ok"); + btnOk.setText(Messages.getString("common.Ok")); //$NON-NLS-1$ } else { Button btnCancel = new Button(shell, SWT.NONE); Button btnRetry = new Button(shell, SWT.NONE); @@ -218,13 +220,13 @@ public class ErrorDialog extends Dialog { fd_btnCancel.bottom = new FormAttachment(100, -5); fd_btnCancel.right = new FormAttachment(100, -5); btnCancel.setLayoutData(fd_btnCancel); - btnCancel.setText("Cancel"); + btnCancel.setText(Messages.getString("common.Cancel")); //$NON-NLS-1$ FormData fd_btnRetry = new FormData(); fd_btnRetry.bottom = new FormAttachment(100, -5); fd_btnRetry.right = new FormAttachment(btnCancel, -10); btnRetry.setLayoutData(fd_btnRetry); - btnRetry.setText("Retry"); + btnRetry.setText(Messages.getString("error.Retry")); //$NON-NLS-1$ } shell.pack(); shell.open(); -- cgit v1.2.3