if (selected[i].isDirectory()) {
Vector files = new Vector();
getFilesRecursively(selected[i], files);
// sort the result
Collections.sort(files, new StringCompare());
for (int j = 0; j < files.size(); j++) {
File temp = (File)files.elementAt(j);
if (useRelativePaths) {
try {
temp = Utils.convertToRelativePath(temp);
} catch (Exception ex) {
ex.printStackTrace();
}
}
m_Exp.getDatasets().addElement(temp);
}
} else {
File temp = selected[i];
if (useRelativePaths) {
try {
temp = Utils.convertToRelativePath(temp);
} catch (Exception ex) {
ex.printStackTrace();
}
}
m_Exp.getDatasets().addElement(temp);
}
}
setButtons(null);
} else {
if (m_FileChooser.getSelectedFile().isDirectory()) {
Vector files = new Vector();
getFilesRecursively(m_FileChooser.getSelectedFile(), files);
// sort the result
Collections.sort(files, new StringCompare());
for (int j = 0; j < files.size(); j++) {
File temp = (File)files.elementAt(j);
if (useRelativePaths) {
try {