File path = new File(directoryName);
if (path.exists())
dialog.setFilterPath(directoryName);
}
String selected = dialog.open();
if (selected != null) {
IPath path = new Path(selected);
if (projectName != null && !projectName.equals(path.lastSegment()))
selected = path.append(projectName).toString();
txtLocation.setText(selected);