setTitle("New Library Path");
} else {
setTitle("Edit Library Path");
}
fPathDialogField = new StringButtonDialogField(new IStringButtonAdapter() {
public void changeControlPressed(DialogField field) {
DirectoryDialog dialog = new DirectoryDialog(getShell());
dialog.setFilterPath(fPathDialogField.getText());
dialog.setText("Select the library path");
dialog.setMessage("Please select the path which represent the PEAR library.");