]> granicus.if.org Git - docbook-dsssl/commitdiff
changed style of file loading
authorMarta Vaclavikova <marta_v@users.sourceforge.net>
Sun, 9 Dec 2007 23:25:40 +0000 (23:25 +0000)
committerMarta Vaclavikova <marta_v@users.sourceforge.net>
Sun, 9 Dec 2007 23:25:40 +0000 (23:25 +0000)
contrib/tools/fo-editor/src/cz/zcu/fav/kiv/editor/config/ConfigController.java

index 8d84b4845f5f66c4b8641902d36655cd3d831a51..9aa310e738d57fbb4ba0046c744cdd7938c75827 100644 (file)
@@ -45,7 +45,7 @@ public class ConfigController {
         data = new ConfigData();\r
         MessageWriter.writeTitle(ResourceController.getMessage("parser.config_file.title"));\r
         File directory = new File(OptionItems.XML_DEFINITION_PATH);\r
-        if (!directory.exists())\r
+        if (!directory.exists() || directory.listFiles().length == 0)\r
             MessageWriter.writeError(ResourceController\r
                     .getMessage("parser.xml_definition_file.invalid_directory"));\r
 \r