We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 228bfdc commit e2d3deeCopy full SHA for e2d3dee
1 file changed
org.omg.sysml/src/org/omg/sysml/adapter/AnnotatingElementAdapter.java
@@ -21,6 +21,11 @@ public static void transformAnnotatingElement(AnnotatingElement annotatingElemen
21
Relationship owningRelationship = annotatingElement.getOwningRelationship();
22
if (owningRelationship instanceof Annotation) {
23
annotations.add((Annotation)owningRelationship);
24
+ } else {
25
+ annotatingElement.getOwnedRelationship().stream().
26
+ filter(Annotation.class::isInstance).
27
+ map(Annotation.class::cast).
28
+ forEachOrdered(annotations::add);
29
}
30
31
0 commit comments