Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Willink2019-05-15 19:54:59 +0000
committerEd Willink2019-05-28 20:47:53 +0000
commitb77122aa5386d6f5f8f4e83a965297a69b3d26af (patch)
tree1de692daf80c29c757ac16d4069feab74c8c34bd
parenta9f85c11e4d6e11644450714d4516eda116aa48a (diff)
downloadorg.eclipse.qvtd-b77122aa5386d6f5f8f4e83a965297a69b3d26af.tar.gz
org.eclipse.qvtd-b77122aa5386d6f5f8f4e83a965297a69b3d26af.tar.xz
org.eclipse.qvtd-b77122aa5386d6f5f8f4e83a965297a69b3d26af.zip
[547308] Make a partial edge secondary
-rw-r--r--plugins/org.eclipse.qvtd.pivot.qvtschedule/emf-gen/org/eclipse/qvtd/pivot/qvtschedule/impl/NavigationEdgeImpl.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.qvtd.pivot.qvtschedule/emf-gen/org/eclipse/qvtd/pivot/qvtschedule/impl/NavigationEdgeImpl.java b/plugins/org.eclipse.qvtd.pivot.qvtschedule/emf-gen/org/eclipse/qvtd/pivot/qvtschedule/impl/NavigationEdgeImpl.java
index 020546558..8d2f87539 100644
--- a/plugins/org.eclipse.qvtd.pivot.qvtschedule/emf-gen/org/eclipse/qvtd/pivot/qvtschedule/impl/NavigationEdgeImpl.java
+++ b/plugins/org.eclipse.qvtd.pivot.qvtschedule/emf-gen/org/eclipse/qvtd/pivot/qvtschedule/impl/NavigationEdgeImpl.java
@@ -546,6 +546,9 @@ public class NavigationEdgeImpl extends NavigableEdgeImpl implements NavigationE
if (this.getReferredProperty().isIsImplicit()) {
this.secondary = true;
}
+ else if (partial && !((NavigationEdgeImpl)oppositeEdge).partial) {
+ this.secondary = true;
+ }
else {
((NavigationEdgeImpl)oppositeEdge).secondary = true;
}
@@ -554,6 +557,7 @@ public class NavigationEdgeImpl extends NavigableEdgeImpl implements NavigationE
@Override
public void initializeProperty(@NonNull Property property, boolean isPartial) {
setReferredProperty(property);
+ setPartial(isPartial);
Property target2sourceProperty = property.getOpposite();
if (target2sourceProperty != null) {
Node targetNode2 = targetNode;
@@ -569,12 +573,11 @@ public class NavigationEdgeImpl extends NavigableEdgeImpl implements NavigationE
NavigationEdge reverseEdge = QVTscheduleFactory.eINSTANCE.createNavigationEdge();
reverseEdge.initialize(edgeRole2, targetNode2, target2sourceProperty.getName(), sourceNode2);
reverseEdge.setReferredProperty(target2sourceProperty);
- reverseEdge.setPartial(isPartial());
+ reverseEdge.setPartial(false /*isPartial()*/); // FIXWE assert false not isPartial()
initializeOpposite(reverseEdge);
}
}
}
- setPartial(isPartial);
}
@Override

Back to the top