}
private void chooseWebappDir() {
IProject project = ResourcesPlugin.getWorkspace().getRoot()
.getProject(fProjText.getText());
ContainerSelectionDialog dialog = new ContainerSelectionDialog(
getShell(), project, false, "Select Web Application Directory");
dialog.setTitle("Folder Selection");
if (project != null) {
IPath path = project.getFullPath();
dialog.setInitialSelections(new Object[] { path });
}
dialog.showClosedProjects(false);
dialog.open();
Object[] results = dialog.getResult();
if ((results != null) && (results.length > 0)
&& (results[0] instanceof IPath)) {
IPath path = (IPath) results[0];
path = path.removeFirstSegments(1);
String containerName = path.makeRelative().toString();