From 89ac04963c6781065a5342e219396bbd73bdf6e9 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 1 Oct 2012 08:30:45 +0000 Subject: Moved Mobile BKU URL to configuration file Extracted localizable Strings git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12542 3a0b52a2-8410-0410-bc02-ff6273a87459 --- .../at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java') diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java index cb6ce596..da7945a6 100644 --- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java +++ b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/cliarguments/ProxyHostArgument.java @@ -16,12 +16,10 @@ package at.asit.pdfover.gui.cliarguments; // Imports -import java.io.File; -import java.io.FileNotFoundException; - 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.workflow.ConfigManipulator; import at.asit.pdfover.gui.workflow.StateMachine; @@ -34,7 +32,7 @@ public class ProxyHostArgument extends CLIArgument { * Constructor */ public ProxyHostArgument() { - super(new String[] {"-proxy"}, "Sets the proxy host to use. Example: -proxy "); //$NON-NLS-1$ + super(new String[] {"-proxy"}, Messages.getString("argument.help.proxyhost")); //$NON-NLS-1$ //$NON-NLS-2$ } /** @@ -64,11 +62,11 @@ public class ProxyHostArgument extends CLIArgument { } catch (Exception ex) { log.error("Proxy host argument invalid!", ex); //$NON-NLS-1$ throw new InitializationException( - "Proxy host invalid! Use: " + this.getHelpText(), ex); + Messages.getString("argument.invalid.proxyhost") + this.getHelpText(), ex); //$NON-NLS-1$ } throw new InitializationException( - "Proxy host argument invalid! Use: " + this.getHelpText(), null); + Messages.getString("argument.invalid.proxyhost") + this.getHelpText(), null); //$NON-NLS-1$ } } -- cgit v1.2.3