public void widgetSelected(SelectionEvent e) {
String path = null;
if (project != null && project.getProject().getLocation() != null) {
ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(Display
.getDefault().getActiveShell(), new WorkbenchLabelProvider(),
new WorkbenchContentProvider());
dialog.setValidator(new ISelectionStatusValidator() {
private final IStatus errorStatus = new Status(IStatus.ERROR, IvyPlugin.ID, 0,
"", null);
public IStatus validate(Object[] selection) {