Note that there are some explanatory texts on larger screens.

plurals
  1. POPermanent node in DSL explorer
    text
    copied!<p>In my custom DSL tool I want a node in its Explorer which cannot be removed. Other than that, I want it to be like a regular node. Basically what I want is a node like the <strong>Xml Serialization Behavior</strong> in the DSL Explorer:</p> <p><a href="http://img31.imageshack.us/img31/740/xmlserializerbehavior.png" rel="nofollow noreferrer">Xml Serialization Behavior context menu illustration http://img31.imageshack.us/img31/740/xmlserializerbehavior.png</a></p> <p>Through using Reflector on the XmlSerializationDefinitionSerializer class in the Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.dll assembly I've discovered that it's just a derivative of DomainClass, so there's nothing (obviously) special about it.</p> <p>I've defined a DomainClass that functions as the node, and right clicking it lets me add sub-nodes just the way I want it to work, I just can't get rid of that Delete menu choice:</p> <p><a href="http://img705.imageshack.us/img705/9033/validators.png" rel="nofollow noreferrer">Delete context menu item illustration http://img705.imageshack.us/img705/9033/validators.png</a></p> <p>I've tried anything that I can think of... I've set the property setter to private, it gets around that, I've set the multiplicity to 1..1, that has no effect other than giving errors when the "Validators" node is missing... I've looked at all the properties both for the DomainClass and for the DomainRelationship between the root model and the Validators Domain Class and none of them seem to deal with this. I've also looked at everything in the Explorer Behavior node in the DSL Explorer window. I'm completely stumped. Does anybody know how to do this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload