From ea349f87b971751dfefc21a2bb60ce8a6d61061b Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:38:08 +0000 Subject: Display cmd line error msg in gui git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@427 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../asit/pdfover/gui/workflow/states/PrepareConfigurationState.java | 6 ++++-- .../src/main/resources/at/asit/pdfover/gui/messages.properties | 2 +- .../src/main/resources/at/asit/pdfover/gui/messages_de.properties | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'pdf-over-gui') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java index 9bdf4de2..bf0694d4 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/PrepareConfigurationState.java @@ -284,7 +284,8 @@ public class PrepareConfigurationState extends State { log.error("Error in cmd line arguments: ", e); //$NON-NLS-1$ ErrorDialog error = new ErrorDialog(this.stateMachine .getGUIProvider().getMainShell(), - Messages.getString("error.CmdLineArgs"), //$NON-NLS-1$ + Messages.getString("error.CmdLineArgs") + "\n" + //$NON-NLS-1$ //$NON-NLS-2$ + e.getMessage(), BUTTONS.OK); error.open(); this.stateMachine.exit(); @@ -312,7 +313,8 @@ public class PrepareConfigurationState extends State { } else { error = new ErrorDialog(this.stateMachine .getGUIProvider().getMainShell(), - Messages.getString("error.CmdLineArgs"), //$NON-NLS-1$ + Messages.getString("error.CmdLineArgs") + "\n" + //$NON-NLS-1$ //$NON-NLS-2$ + e.getMessage(), BUTTONS.OK); } error.open(); diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties index 83e30e18..e2247ec0 100644 --- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties +++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages.properties @@ -61,7 +61,7 @@ config.Simple=Basi&c dataSourceSelection.DropLabel=Drag document here dataSourceSelection.DropLabel2=or... dataSourceSelection.browse=&Browse for PDF on your computer -error.CmdLineArgs=Error parsing the command-line arguments +error.CmdLineArgs=Error parsing the command-line arguments: error.Details=Details error.EnteredReferenceValue=You entered the reference value! error.FailedToGetSignedDocument=Failed to get signed document. diff --git a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties index 3b9b841c..9e15c8f8 100644 --- a/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties +++ b/pdf-over-gui/src/main/resources/at/asit/pdfover/gui/messages_de.properties @@ -61,7 +61,7 @@ config.Simple=&Einfach dataSourceSelection.DropLabel=Dokument hierher ziehen dataSourceSelection.DropLabel2=oder... dataSourceSelection.browse=&Durchsuchen um ein Dokument zu wählen -error.CmdLineArgs=Fehler bei den Befehlszeilen-Parametern +error.CmdLineArgs=Fehler bei den Befehlszeilen-Parametern: error.Details=Details error.EnteredReferenceValue=Sie haben den Vergleichswert eingegeben! error.FailedToGetSignedDocument=Konnte signiertes Dokument nicht erhalten. -- cgit v1.2.3