summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authortkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
committertkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459>2012-10-31 16:36:56 +0000
commita3b64f6987968d343176f596af0e3f2f4653639b (patch)
treeaee999ec26cc41dbb07c6469176194cc9c204dae /trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui
parent220fd02d05c701ebfd99c72068cd58b9427a15c4 (diff)
downloadpdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.tar.gz
pdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.tar.bz2
pdf-over-a3b64f6987968d343176f596af0e3f2f4653639b.zip
Externalize path exceptions
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12747 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java b/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
index 8e70f502..72e047c4 100644
--- a/trunk/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/AdvancedConfigurationComposite.java
+++ b/trunk/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$
}
}
}