Override Metaclass Customization

Discussions about Domain Specific Language customizations

Moderator: Moderators

Override Metaclass Customization

Postby talberi » Fri Dec 07, 2018 12:44 pm

Is there a way to override the customization of a stereotype's metaclass? I created a stereotype that has a metaclass of State. In MagicDraw, states can only be added onto state diagrams, with their owner being a Region. I want to be able to create my stereotyped element (hideMetatype=true) by right-clicking on a package and going through the create element option without having to create a state machine before I create my stereotyped element. I added Package as one of the possible owners in the stereotype's customization, but when I right-click on a package and go to create element, the stereotype appears in the available element list but it is grayed out. Is there a way to override the state metaclass's possible owners so that I can create my stereotyped element directly under a package?
talberi
Forum Beginner
Forum Beginner
 
Posts: 32
Posts Rating:0
Joined: Fri Nov 03, 2017 4:51 am

Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests