Fix: "TaskDescriptor with linked task being an extend-replacer not syn contents"
diff --git a/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java b/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java
index 9941455..9f8740f 100644
--- a/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java
+++ b/1.5/plugins/org.eclipse.epf.library/src/org/eclipse/epf/library/realization/impl/RealizedDescriptor.java
@@ -68,9 +68,10 @@
if (getLinkedElement() == null) {
return null;
}
- if (! ContentDescriptionFactory.hasPresentation(getLinkedElement())) {
- return null;
- }
+// Cannot do this if the linked element has variability, e.g. an extend-replacer
+// if (! ContentDescriptionFactory.hasPresentation(getLinkedElement())) {
+// return null;
+// }
EStructuralFeature elementFeature = contentFeatureMap.get(feature);
@@ -98,8 +99,12 @@
Descriptor greenParent = propUtil.getGreenParentDescriptor(getDescriptor());
Object linkedValue;
if (greenParent == null) {
+
+// This API would not combine owner element's variability's effect
+// linkedValue = ConfigurationHelper.calcAttributeFeatureValue(
+// getLinkedElement().getPresentation(), elementFeature, getConfig());
linkedValue = ConfigurationHelper.calcAttributeFeatureValue(
- getLinkedElement().getPresentation(), elementFeature, getConfig());
+ getLinkedElement().getPresentation(), getLinkedElement(), elementFeature, getConfig());
} else {
linkedValue = greenParent.getPresentation().eGet(feature);
}