Button browseLink = new Button(client, SWT.FLAT);
browseLink.setText(Messages.NewDocumentWizardDefinePage_link_browse_text); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
browseLink.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent selectionEvent) {
ContainerSelectionDialog containerSelectionDialog = new ContainerSelectionDialog(getShell(),
ResourcesPlugin.getWorkspace().getRoot(), false, Messages.NewDocumentWizardDefinePage_dialog_container_message);
if(containerSelectionDialog.open() == Window.OK) {
Object[] objects = containerSelectionDialog.getResult();
if(objects.length > 0) {
Object object = objects[0];
if(object instanceof IPath) {
textFolder.setText(((IPath)object).toString());
}