diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:38:08 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:38:08 +0000 |
commit | ea349f87b971751dfefc21a2bb60ce8a6d61061b (patch) | |
tree | ec9e5de096f2c9abd33c30f5e1f87de7a8ea5ed9 /pdf-over-gui/src | |
parent | 53f444f8bfc71219024b9bf1be26c7c0ccd9d68f (diff) | |
download | pdf-over-ea349f87b971751dfefc21a2bb60ce8a6d61061b.tar.gz pdf-over-ea349f87b971751dfefc21a2bb60ce8a6d61061b.tar.bz2 pdf-over-ea349f87b971751dfefc21a2bb60ce8a6d61061b.zip |
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
Diffstat (limited to 'pdf-over-gui/src')
3 files changed, 6 insertions, 4 deletions
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. |