packageCombo.setModel(model);
if (model.getSize() > 0) {
DataObject data = PackageUtils.getSelectedPackage();
if (data != null) {
try {
final JavaPackage selected = new JavaPackage(ClassPathUtils.getSourceClassPath(p), data.getPrimaryFile());
packageCombo.setSelectedItem(selected);
} catch (Exception ex) {
packageCombo.setSelectedIndex(0);
}
} else {