LOG.log(Level.SEVERE, null, ex);
return;
}
int id = 0;
ScenarioTitleProvider titleProvider = new ScenarioTitleProvider();
for (Resource resource : files) {
try {
// load it completely
// TODO instead of loading and parsing completely there might be a simpler function that only loads the title
XMLHelper.read(resource, titleProvider);
scenarios.put(id++, new Pair<>(resource, titleProvider.getTitle()));
} catch (IOException | ParsingException ex) {
LOG.log(Level.SEVERE, null, ex);
// TODO a scenario cannot be loaded, delete it from the list later on
}
}