}
openFolderAction.setResult(result);
}
private KongaTreeModel createTreeModel(CreateXsdResult result) {
GeneratedXsds xsds = result.getXsds();
File mainFile = xsds.getMainXsd();
FileNode root = new FileNode(mainFile.getParentFile());
root.addChild(new FileNode(mainFile));
List<File> additional = Lists.newArrayList(xsds.getAdditionalXsds());
Collections.sort(additional);
for (File f : additional) {
root.addChild(new FileNode(f));
}
return new DefaultKongaTreeModel(root);