ElementListSelectionDialog dialog = new ElementListSelectionDialog(getSection().getShell(), new JavaElementLabelProvider(1));
dialog.setTitle(WizardConstants.PACKAGE_SELECTION_DIALOG_TITLE);
dialog.setMessage(WizardConstants.PACKAGE_SELECTION_DIALOG_DESC);
dialog.setEmptyListMessage(WizardConstants.PACKAGE_SELECTION_DIALOG_MSG_NONE);
dialog.setElements(list.toArray(new IJavaElement[0]));
if (dialog.open() == Window.OK) {
IPackageFragment fragment = (IPackageFragment) dialog.getFirstResult();
String newBundleName = fragment.getElementName();
boolean isArchive = fragment.getParent() instanceof JarPackageFragmentRoot;
String fragmentRoot = fragment.getParent().getElementName();
List<String> tmp = model.getPackageList();