From 0a7bee2fb6d6a130d984786d8e6aa1eb168ab134 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:09:14 +0000 Subject: Externalize path exceptions git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@161 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../pdfover/gui/composites/AdvancedConfigurationComposite.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src/main/java/at') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java index 8e70f502..72e047c4 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java @@ -455,16 +455,14 @@ public class AdvancedConfigurationComposite extends BaseConfigurationComposite { String foldername = this.configurationContainer.getOutputFolder(); - if (foldername != null && !foldername.equals("")) { + if (foldername != null && !foldername.equals("")) { //$NON-NLS-1$ File outputFolder = new File(foldername); if (!outputFolder.exists()) { - throw new Exception("Path " + outputFolder.getAbsolutePath() - + " doesnot exists!"); + throw new Exception(String.format(Messages.getString("exception.PathNotExist"), outputFolder.getAbsolutePath())); //$NON-NLS-1$ } if (!outputFolder.isDirectory()) { - throw new Exception("Path " + outputFolder.getAbsolutePath() - + " is not a directory!"); + throw new Exception(String.format(Messages.getString("exception.PathNotDirectory"), outputFolder.getAbsolutePath())); //$NON-NLS-1$ } } } -- cgit v1.2.3