dialog.setInput(element);
dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));
dialog.setInitialSelections(contentProvider.getElements(project
.getProject()));
if (dialog.open() == ElementTreeSelectionDialog.OK) {
Object[] selection = dialog.getResult();
if (selection != null && selection.length > 0) {
for (int i = 0; i < selection.length; i++) {
IFile file = (IFile) selection[i];
IWebflowConfig config = new WebflowConfig(project);