Alan - Thanks for your response.
no, I dont believe the problem is the DomainPropertyMoniker.
I deleted the origianal reproduction dsl. but made a new one following these steps: (I suspect there is some error in the steps I took, since I had this working before!)
1) Create a minimal language (name=TestLanguage, others properties=defualt) 2) Delete Example Shape (in diagram) 3) Add SwimLane1 (from toolbox)
4) DSL explorer -> delete ShapeMap 5) DSL explorer -> add SwimLaneMap DomainClass: ExampleElement
6) Save, continue when prompted 7) Open DslDefinition.dsl with xmleditor 8) Modify Diagram/ShapeMaps so that it looks like:
<ShapeMaps> <SwimLaneMap> <DomainClassMoniker Name="ExampleElement" /> <SwimLane> <SwimLaneMoniker Name="SwimLane1"/> </SwimLane> </SwimLaneMap> </ShapeMaps>
<<Back to the Dsl-editor>> 9) DSL Explorer -> Add TextDecorator1 to SwimLane1 10) DSL Explorer -> Select SwimLaneMap -> DSL Details, Decorator Maps -> Check TextDecorator1, Display Property = "Name"
Save the lot. Transform all templates. <error occurs>
The ExampleElement is defined as follows:
< DomainClass Id="d85a8bb1-349a-4893-9856-e76540d9b1bb" Description="Description for OlafConijnConsulting.TestLanguage.ExampleElement" Name="ExampleElement" DisplayName="Example Element" Namespace="OlafConijnConsulting.TestLanguage"> <Properties> <DomainProperty Id="e3b46693-7a2b-4d03-9c15-7a30f437fd91" Description="Description for OlafConijnConsulting.TestLanguage.ExampleElement.Name" Name="Name" DisplayName="Name" DefaultValue="" IsElementName="true"> <Type> <ExternalTypeMoniker Name="/System/String" /> </Type> </DomainProperty> </Properties> </DomainClass>
The dsl version I use is: 2006.07
Thanks in advance! |