final Button locationPathChooseButton = new Button(baseFolderGroup, SWT.BORDER);
locationPathChooseButton.setText("...");
locationPathChooseButton.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter(){
public void widgetSelected( org.eclipse.swt.events.SelectionEvent e ) {
DirectoryDialog fileDialog = new DirectoryDialog(locationPathChooseButton.getShell(), SWT.OPEN);
String path = fileDialog.open();
if (path != null)
path = path.replaceAll("\\s+", "_");
if (isBaseFolderValid(path)) {
properties.basePath = path;
baseFolderText.setText(path);