TextDecorators in SwimLaneShapes
After modifying my dsl-definition I get an error transforming my templates.
I can get rid of the error by deleting the TextDecorator on my SwimLaneShape, adding the decorator reproduces the error.
After playing around with a new model, adding a DomainClass, DomainProperty, SwimLaneShape and TextDecorator I get this same error once I wired the TextDecorator to point at the DomainProperty on DomainClass.
Does anyone have a clue on what might have caused this error? and how to get rid of it? TIA
Error looks like:
Error 1 Running transformation: System.InvalidOperationException: Domain relationship specified domain role belongs to doesn't match the type of link requested.
at Microsoft.VisualStudio.Modeling.RolePlayerLinksCollection.GetLinks[T](DomainRoleInfo domainRole, Boolean excludeDerivedRolesLinks)
at Microsoft.VisualStudio.Modeling.DomainRoleInfo.GetElementLinks[T](ModelElement rolePlayerElement)
at Microsoft.VisualStudio.Modeling.DomainRoleInfo.GetElementLinks[T](ModelElement rolePlayerElement, Guid domainRoleId)
at Microsoft.VisualStudio.TextTemplating1F672FD4B746F2D498A572B1812810D4.GeneratedTextTransformation.GenerateDomainModel(DslLibrary dm)
at Microsoft.VisualStudio.TextTemplating1F672FD4B746F2D498A572B1812810D4.GeneratedTextTransformation.TransformText() C:\Documents and Settings\Olaf Conijn\My Documents\Code\Test\tester\Dsl\GeneratedCode\DomainModel.tt 1 1
The definition for the SwimLaneShape and SwimLaneShapeMap look like the following:
<SwimLane Id="6618d4e7-babb-40a2-993c-af73f794b7a4" Description="Description for OlafConijn.tester.SwimLane1" Name="SwimLane1" DisplayName="Swim Lane1" Namespace="OlafConijn.tester" FixedTooltipText="Swim Lane1" InitialWidth="0" InitialHeight="0">
<Decorators>
<SwimLaneHasDecorators Position="InnerTopLeft" HorizontalOffset="0" VerticalOffset="0">
<TextDecorator Name="TextDecorator1" DisplayName="Text Decorator1" DefaultText="TextDecorator1" />
</SwimLaneHasDecorators>
</Decorators>
</SwimLane>
{....}
<SwimLaneMap>
<DomainClassMoniker Name="ExampleElement" />
<DecoratorMap>
<TextDecoratorMoniker Name="SwimLane1/TextDecorator1" />
<PropertyDisplayed>
<PropertyPath>
<DomainPropertyMoniker Name="ExampleElement/Name" />
</PropertyPath>
</PropertyDisplayed>
</DecoratorMap>
<SwimLane>
<SwimLaneMoniker Name="SwimLane1" />
</SwimLane>
</SwimLaneMap>

