index > Visual Studio Team System - Domain-Specific Language Tools > Controlling and detecting what elements are droppable on the diag...

Controlling and detecting what elements are droppable on the diag...


Hi,

I've created my first DSL which can accept DSRef items from the server explorer.
To implement I followed some samples which are already described on the forum. In an overriden OnAssociated I bind the DragOver and DragDrop events and check for a CF_DSREF type. This is all working OK and I'm creating business objects, attributes and relations fromt the database metadata.

My issue is that I managed to change something in the DSL which prevents business objects being dropped from the toolbox onto the diagram. So I'm looking for leads on which properties control this behaviour and where in the underlying DSL tools framework sources I can debug to get more knowledge of how this is implemented.

Grtz, Harry

Harry Maes

OK, this probably has something to do with connection builders.

I have the following model:

NamedElement base domain class

ModelRoot root domain class which has an embedded relationship to named element

Descendants of named element are BusinessObject, Attribute and Operation.

Two questions:

1. If I drop a business object it is accepted however the model root is NULL so it's not created.
I created a connection builder for the ModelRootHasNamedElements relation from ModelRoot to BusinessObject

2. I only want to accept business objects to be droppable on the diagram. Attributes and operations must be only droppable on business objects.

Tx for your replies!

Grtz, Harry

Harry Maes

Yep, figured it out.

The element merge directive from ModelRoot to BusinessObject wasn't correctly setup. In my case the modelroot only needs an EMD to businessobject and not to attribute and operation...

Grtz, Harry

Harry Maes
These are the nicest queries...


- Alan [Microsoft]
Alan Cameron Wills
reply 4

You can use google to search for other answers

 

More Articles

How to make Multiple Views
XML editor starts DSL model, but I want the Factory Editor
Possible to get samples with new DSL included text-templates?
Where can i get more documents of DLS Tools for developer?
T4 Example of passing parameters to TextTransform using the -a co...
Unable to Start Debugging !!!
'security error'
Label Editing (how to prevent)
Retrieving embedded elements
Dynamically determining link type
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Popup dialog in DSL
November 2005 CTP available
Problem with the VS SDK March 2006
November release Designers compile errors
Duplicate AddRule classes in ViewFixupRu…
Package Load Failure - ...TextTemplating…
Adding items to compartment
Own shape decorators
GAC support in Templating Engine (Featur…
Additional Toolbox Tab
Designing ClassDesigner in DSL Tools?
Migrating compartments
DSL Tools November CTP and VS SDK Decemb…
Stability of Modeling API
Using a Template to iterate on all model…

Hot Articles

Prevent rules from firing during model d…
Mouse click in the Domain-Specific Langu…
Embedding Relationships and Inheritence
Adding/Removing elements in domain model
Customising standard context menu items
Backward Compatibility Issue with Domain…
Experience report: Building my own DSL
How to Use Path Syntax and Element Merge…
Elements doesn't appear to the target de…
Making a reference from a connector class
UIPChart problem
How to Export diagram as image
Set Inherited Properties
Can I Generate Code with CodeDom in the …
How to set compartment's default expande…

Recommend Articles

Crash of visual studio when model is inc…
Self-contained Embedding
How do you Add F1 Help and ToolTips to a…
Auto Add Child Elements
Problem with List type value property
Compartment Shape for Model
Load Data designed in another model file
How to get a programmatic reference on t…
Set Inherited Properties
guidLogicalView
Abstract classes in minimal language
Troubleshooting mysterious crashes
Textarea feature in DSL designer issue.
property graphical representation
Installing June 2006 VS SDK CTP side-by-…