index > Visual Studio Team System - Domain-Specific Language Tools > How to integrate custom DSL with Class Designer?

How to integrate custom DSL with Class Designer?


Hello,

at PDC 05, Jochen Seemann demonstrated that a custom DSL can be integrated with the Class Designer that is part of Visual Studio 2005. I'm doing a quick research on this topic but found no good resources. Can somebody please point me to the appropriate documentation or samples? I would be very graceful.

Thank you,
Borek
Borek Bernard

Hi Borek,

What do you mean by integrate? Do you mean make a reference to Class Designer metamodel elements or something else? I'm interested too in using in my DSL metamodel SDM domain classes, for instance. What I know that there is at least two problems: Class Designer and SDM are based on first version of DSL, it means that ModelElement classes are different in current version of DSL and first one. But probably if you load all old assemblies such Microsoft.VisualStudio.Model.Sdk and so on, on which ClassDesigner is depend on, it will work. The second problem is related to problem about, current version of DSL does not support external references. There is some work around (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=604034&SiteID=1) but it does not solve all problems. Microsoft promised that SDM and Class Desinger will be implemented in base on latest version of DSL when DSL is released. I hope I answer you question.

Evgeny Popov

Evgeny Popov
Hi,

my concrete situation is that I want to build a DSL that is more abstract than Class Diagram. In my top-level DSL, I want to be able to click on some diagram element, select "Drill down into Class Diagram" and to show appropriate objects in CD.

But your response was informative, thank you.
Borek
Borek Bernard

Hi,

Actually, it is possible, probably. You can use CustomStorageProperty and ExternalType. It gives you possibility to store CD in external file as property of your domain class. And you can add a handler and inside handler invoke opening of a CD file. I'm trying to do almost the same,but both my metamodels are based on the latest version of the DSL. In your case, you may have version's troubles as I wrote before. But you can try it.

Evgeny

Evgeny Popov
reply 4

You can use google to search for other answers

 

More Articles

I have a new article from the NOV CTP based on the information in...
Shapes that are not directly related to the Domain class
DSL Tools vs VSTS designers
When will a release be made available for the RTM?
Language name has to start with capital letter
Drag&Drop of elements from DSL explorer?
Can I Generate Code with CodeDom in the target language project?
How access to a connector property
How to control order of transformation steps?
filtering reference dropdowns in the propertygrid
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Announcing: SharpLudus, a software facto…
Problem Installing DSL Tools September 2…
Adding/Removing elements in domain model
How to integrate custom DSL with Class D…
How to change the font of a shape?
Come join the largest group on the DSL a…
Diagram Size
DSL and GAT demo
Administrator priviliges required
Accessing the domain model using code
Add shapes and connectors to diagram pro…
Add a toolbar to the dsl designer surface
Custom Modeler Code
Opening an existing DSL in a fresh insta…
Transform Model to DSL

Hot Articles

Error crearting DSL prokject
Tool support for designer definition?
schedule for beta and V1 releases?
Join the World's Largest User Group on S…
Transaction.RollBack() Error: Oject refe…
Text template load a file
Customize DirectiveProcessor
Custom Command improvements
Custom type for property
Defining custom multiplicities
Extending right-click menu for DSL class
"Static" Swimlanes
CMDS: Missing package guid for commands …
DMD -> DD
Diferents Domain Models an Designer Defi…

Recommend Articles

DMD -> DD
Diferents Domain Models an Designer Defi…
How to add or remove template files in t…
Custom TargetEndStyle
Comments and CommentShapes
Programmatically creating diagrams
My view on views, Repositories, Multi-us…
How to control order of transformation s…
Reference from one DSL metamodel to anot…
my feedback about dsl
Controlling Font
Toolswindows out of control.
RelationShip ZeroOne-ZeroMany as property
.tt files shouldn't be copyrighted
Setup & life cycle