Commit f05f3443 authored by Romain Bioteau's avatar Romain Bioteau

fix emf model update

parent 708d6f18
......@@ -106,6 +106,14 @@ public class EMFModelUpdater<T extends EObject> {
.getEAllStructuralFeatures()
.stream()
.filter(EReference.class::isInstance)
.filter(feature -> {
if (!target.eClass().getEAllStructuralFeatures().contains(feature)) {
BonitaStudioLog.warning(String.format("Cannot update EObject value: %s does not have a %s feature.",
target.eClass().getName(), feature.getName()), Activator.PLUGIN_ID);
return false;
}
return true;
})
.forEach(feature -> {
if (feature.isMany()) {
handleManyCase(source, target, feature);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment