View | Details | Raw Unified | Return to bug 156500
Collapse All | Expand All

(-)src/org/eclipse/gmf/mappings/impl/GMFMapPackageImpl.java (-2 / +2 lines)
Lines 2066-2079 Link Here
2066
		  (childReferenceEClass, 
2066
		  (childReferenceEClass, 
2067
		   source, 
2067
		   source, 
2068
		   new String[] {
2068
		   new String[] {
2069
			 "ocl", "let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))",
2069
			 "ocl", "let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))",
2070
			 "description", "Side-affixed children can not be pure labels"
2070
			 "description", "Side-affixed children can not be pure labels"
2071
		   });		
2071
		   });		
2072
		addAnnotation
2072
		addAnnotation
2073
		  (childReferenceEClass, 
2073
		  (childReferenceEClass, 
2074
		   source, 
2074
		   source, 
2075
		   new String[] {
2075
		   new String[] {
2076
			 "ocl", "let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))",
2076
			 "ocl", "let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))",
2077
			 "description", "Side-affixed children can not be placed in compartments"
2077
			 "description", "Side-affixed children can not be placed in compartments"
2078
		   });				
2078
		   });				
2079
		addAnnotation
2079
		addAnnotation
(-)models/gmfmap.ecore (-2 / +2 lines)
Lines 108-118 Link Here
108
      <details key="description" value="ChildReference to NodeMapping with domainElement should define 'containmentFeature'"/>
108
      <details key="description" value="ChildReference to NodeMapping with domainElement should define 'containmentFeature'"/>
109
    </eAnnotations>
109
    </eAnnotations>
110
    <eAnnotations source="http://www.eclipse.org/gmf/2005/constraints">
110
    <eAnnotations source="http://www.eclipse.org/gmf/2005/constraints">
111
      <details key="ocl" value="let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))"/>
111
      <details key="ocl" value="let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))"/>
112
      <details key="description" value="Side-affixed children can not be pure labels"/>
112
      <details key="description" value="Side-affixed children can not be pure labels"/>
113
    </eAnnotations>
113
    </eAnnotations>
114
    <eAnnotations source="http://www.eclipse.org/gmf/2005/constraints">
114
    <eAnnotations source="http://www.eclipse.org/gmf/2005/constraints">
115
      <details key="ocl" value="let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))"/>
115
      <details key="ocl" value="let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))"/>
116
      <details key="description" value="Side-affixed children can not be placed in compartments"/>
116
      <details key="description" value="Side-affixed children can not be placed in compartments"/>
117
    </eAnnotations>
117
    </eAnnotations>
118
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentNode" lowerBound="1"
118
    <eStructuralFeatures xsi:type="ecore:EReference" name="parentNode" lowerBound="1"
(-)src/org/eclipse/gmf/mappings/ChildReference.java (-2 / +2 lines)
Lines 27-34 Link Here
27
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not childrenFeature.oclIsUndefined() implies childrenFeature.eContainingClass.isSuperTypeOf(parentNode.domainMetaElement)' description='\'Children Feature\' must be owned by \'Domain Meta Element\' or its super type of this reference parent Node Mapping'"
27
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not childrenFeature.oclIsUndefined() implies childrenFeature.eContainingClass.isSuperTypeOf(parentNode.domainMetaElement)' description='\'Children Feature\' must be owned by \'Domain Meta Element\' or its super type of this reference parent Node Mapping'"
28
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not containmentFeature.oclIsUndefined() implies containmentFeature.eContainingClass.isSuperTypeOf(parentNode.domainMetaElement)' description='\'Containment Feature\' must be owned by \'Domain Meta Element\' or its super type of this reference parent Node Mapping'"
28
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not containmentFeature.oclIsUndefined() implies containmentFeature.eContainingClass.isSuperTypeOf(parentNode.domainMetaElement)' description='\'Containment Feature\' must be owned by \'Domain Meta Element\' or its super type of this reference parent Node Mapping'"
29
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not child.getDomainContext().oclIsUndefined() implies not containmentFeature.oclIsUndefined()' description='ChildReference to NodeMapping with domainElement should define \'containmentFeature\''"
29
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='not child.getDomainContext().oclIsUndefined() implies not containmentFeature.oclIsUndefined()' description='ChildReference to NodeMapping with domainElement should define \'containmentFeature\''"
30
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))' description='Side-affixed children can not be pure labels'"
30
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in (((child.labelMappings->size() = 1) and child.labelMappings->forAll( soleLabel: LabelMapping | soleLabel.diagramLabel = child.diagramNode)) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))' description='Side-affixed children can not be pure labels'"
31
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NSEW))' description='Side-affixed children can not be placed in compartments'"
31
 *        annotation="http://www.eclipse.org/gmf/2005/constraints ocl='let child:NodeMapping=(if ownedChild.oclIsUndefined() then referencedChild else ownedChild endif) in ((not compartment.oclIsUndefined()) implies (child.diagramNode.affixedParentSide = gmfgraph::Direction::NONE))' description='Side-affixed children can not be placed in compartments'"
32
 * @generated
32
 * @generated
33
 */
33
 */
34
public interface ChildReference extends NodeReference {
34
public interface ChildReference extends NodeReference {

Return to bug 156500