RCP: X.X, Import parameter editor, test if the source directory parameter is a directory
The import parameter editor FileDialog (with Directory FLAG) can return a File (file path) if the user writes directly the file path in the text field.
This behavior is not compatible with the directory ‘src’ input parameter policy of all import modules.
Solution :
- Add a test on return of FileDialog
- If the File is not a directory, then
- write a message in the console: “Error: given corpus source input path is not a directory: FILEPATH”
- do cancel action
(from redmine: issue id 869, created on 2014/06/18 by Matthieu Decorde)