Exemplo n.º 1
0
 public static DslModeling::LinkedElementCollection <DomainClass2> GetDomainClass2(DomainModel element)
 {
     return(GetRoleCollection <DslModeling::LinkedElementCollection <DomainClass2>, DomainClass2>(element, DomainModelDomainRoleId));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// Creates a DomainModelHasDomainClass2 link in the same Partition as the given DomainModel
 /// </summary>
 /// <param name="source">DomainModel to use as the source of the relationship.</param>
 /// <param name="target">DomainClass2 to use as the target of the relationship.</param>
 public DomainModelHasDomainClass2(DomainModel source, DomainClass2 target)
     : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[] { new DslModeling::RoleAssignment(DomainModelHasDomainClass2.DomainModelDomainRoleId, source), new DslModeling::RoleAssignment(DomainModelHasDomainClass2.DomainClass2DomainRoleId, target) }, Tum.PDE.VSPluginDSL.VSPluginDSLDomainModelIdProvider.Instance.CreateId())
 {
 }
Exemplo n.º 3
0
 public static void SetDomainModel(DomainClass2 element, DomainModel newDomainModel)
 {
     DslModeling::DomainRoleInfo.SetLinkedElement(element, DomainClass2DomainRoleId, newDomainModel);
 }