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 --- .../at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java index 5aea45bf..60ef8c59 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/OutputFolderArgument.java @@ -23,8 +23,8 @@ import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.asit.pdfover.gui.Messages; import at.asit.pdfover.gui.exceptions.InitializationException; -import at.asit.pdfover.gui.exceptions.InvalidPortException; import at.asit.pdfover.gui.workflow.ConfigManipulator; import at.asit.pdfover.gui.workflow.StateMachine; @@ -36,7 +36,7 @@ public class OutputFolderArgument extends CLIArgument { * Constructor */ public OutputFolderArgument() { - super(new String[] {"-o"}, "Sets the output folder to use. Example: -o "); //$NON-NLS-1$ + super(new String[] {"-o"}, Messages.getString("argument.help.output")); //$NON-NLS-1$ //$NON-NLS-2$ } /** @@ -64,7 +64,7 @@ public class OutputFolderArgument extends CLIArgument { } if(!outputFolderDir.isDirectory()) { - throw new IOException(outputFolderDir + " is not a directory"); + throw new IOException(outputFolderDir + Messages.getString("argument.error.output")); //$NON-NLS-1$ } ConfigManipulator configManipulator = stateMachine.getConfigManipulator(); @@ -76,11 +76,11 @@ public class OutputFolderArgument extends CLIArgument { } catch (Exception ex) { log.error("Output folder argument invalid!", ex); //$NON-NLS-1$ throw new InitializationException( - "Output folder argument invalid! Use: " + this.getHelpText(), ex); + Messages.getString("argument.invalid.output") + this.getHelpText(), ex); //$NON-NLS-1$ } throw new InitializationException( - "Output folder argument invalid! Use: " + this.getHelpText(), null); + Messages.getString("argument.invalid.output") + this.getHelpText(), null); //$NON-NLS-1$ } } -- cgit v1.2.3