Community
Participate
Working Groups
In the GMFGen, the semantic element for the Affixed Node ContainmentCircleEditPart is the UML Port. This choice is a problem when we want show a UML Port with the Show/Hide Contents Action. In this case, the Port is not represented like a Property in a Compartment, but like an Affixed Child Node, with the ContainmentCircle Figure. Step to reproduce : 1/Create a Composite Diagram 2/Create a Class on this diagram 3/Create a Port on this Class 4/Create a Class Diagram 5/Drop the class in the Class Diagram 6/Use the Show Contents Action to see the Port in this class.
*** Bug 323957 has been marked as a duplicate of this bug. ***
done in the revision 3043 To do that I have remove the modelfacet from the gmfgen ContainmentCircleEditPart I have replaced MetamodelType element by a NotationType element. I have also written the same identifier To allow the generation, I have also fixe a bug in the template of VisualIDRegistry The original code do not pay attention if a element facet exist to edit generate the constraint. So at each generation, a mistake was raised. In order to solve it, I test if the node is associated to a sematic element by using the attribute sansDomain of the meta attribute in the gmfgen. «IF null <> editorGen.expressionProviders-» «EXPAND _constraintMethod FOREACH topLevelNodes->select(n | n.modelFacet.modelElementSelector <> null and n.sansDomain = false)-» «EXPAND _constraintMethod FOREACH childNodes->select(n | n.modelFacet.modelElementSelector <> null and n.sansDomain = false)-» «FOREACH links AS l»«EXPAND _constraintMethod(l) FOR l.modelFacet»«ENDFOREACH» «ENDIF-»
In r3116 : Incorrect naming of ContainmentCircle id ("ContainementCircle" instead of "ContainmentCircle") provoked errors in RequirementDiagram.