////////////////////////////////////////////////////////////////////////////
private IPackageFragment selectClientPackage(IPackageFragment initialSelection) {
Shell shell = Display.getCurrent().getActiveShell();
ILabelProvider labelProvider =
new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
ITreeContentProvider contentProvider = new StandardJavaElementContentProvider();
ElementTreeSelectionDialog dialog =
new ElementTreeSelectionDialog(shell, labelProvider, contentProvider);
//
dialog.setTitle("Source folder selection");
dialog.setMessage("Choose a source folder:");