use of org.eclipse.epp.internal.mpc.ui.operations.FeatureDescriptor in project epp.mpc by eclipse.
the class FeatureSelectionWizardPage method updateSelectionModel.
private void updateSelectionModel(Set<FeatureDescriptor> featureDescriptors) {
Map<String, FeatureDescriptor> descriptorById = new HashMap<String, FeatureDescriptor>();
for (FeatureDescriptor fd : featureDescriptors) {
descriptorById.put(fd.getId(), fd);
}
SelectionModel selectionModel = getWizard().getSelectionModel();
for (CatalogItemEntry entry : selectionModel.getCatalogItemEntries()) {
for (FeatureEntry child : entry.getChildren()) {
FeatureDescriptor descriptor = descriptorById.get(child.getFeatureDescriptor().getId());
if (descriptor != null) {
child.setFeatureDescriptor(descriptor);
}
}
}
}
Aggregations