Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am building a DSL using the Visual Studio modelling SDK and one of my model classes needs to have a domain property that I want to just be one of a selection of items from a drop-down list.

(I can't override a Microsoft.VisualStudio.Modeling.ElementNameProvider class, as this property is not the name)
Posted

1 solution

It turns out that if you right-click the top level item in the DSL Explorer there is a menu "Add New Domain Enumeration" that fires a builder to help you build a new enumerated type that is known to the model and can therefore be used for domain properties.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900