5. Creation, Deletion, and Update Behavior
Introduction
Chapter 2 introduced the different aspects of the definition of a DSL: the domain model; the presentation layer, including graphical notation, explorer, and properties window; creation, deletion, and update behavior; validation; and serialization. Chapter 3 described the first aspect, the domain model, and Chapter 4 described the presentation aspect. This chapter focuses on how to define update behavior, that is, creation of elements using the toolbox and explorer, editing of properties of elements through the properties window, and deletion of elements.
Element Creation
When a new element is created in the store, it must be linked into the embedding tree—that is, it must be the target of ...
Get Domain-Specific Development with Visual Studio DSL Tools now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.