final Button browseButton = new Button(parent, SWT.PUSH);
browseButton.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));
browseButton.setText("...");
browseButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected( SelectionEvent e ) {
DirectoryDialog directoryDialog = new DirectoryDialog(text.getShell(), isInFolder ? SWT.OPEN : SWT.SAVE);
String lastFolderChosen = OmsBoxPlugin.getDefault().getLastFolderChosen();
directoryDialog.setFilterPath(lastFolderChosen);
String path = directoryDialog.open();
if (path == null || path.length() < 1) {
text.setText("");
} else {
path = checkBackSlash(path, isFile);
text.setText(path);
// text.setSelection(text.getCharCount());
setDataValue();
}
OmsBoxPlugin.getDefault().setLastFolderChosen(directoryDialog.getFilterPath());
}
});
}
if (isCrs) {
// the crs choice group