Object element = iterator.next();
if (element instanceof IPackageFragment) {
IPackageFragment pkg = (IPackageFragment) element;
newEntries.add(createNewEntry(pkg.getElementName()));
} else if (element instanceof ImportPackage) {
ImportPackage pkg = (ImportPackage) element;
newEntries.add(createNewEntry(pkg.getName()));
}
}
}
addRows(insertionIndex, newEntries);
return true;