Paste DSL Elements into Generic Table

Discussions about Domain Specific Language customizations

Moderator: Moderators

Paste DSL Elements into Generic Table

Postby » Wed May 02, 2018 12:24 pm

I want to paste elements with a custom stereotype into a Generic Table. I have created a profile with a custom stereotype "MyStereotype" (which extends the UML Class) and I can use this as expected. The stereotype has a number of defined tagged values.

If I make the Stereotype the 'Element Type' of a Generic Table then I am able to add the tagged values as columns.

If I then try to cut-and-paste elements from an Excel spreadsheet into this table then the software (CSM) creates UML Classes in the browser which don't appear in the table as they don't have the "MyStereotype" stereotype. Also since the tags are not defined for the UML Class, none of those are populated

What am I doing wrong? Do I need to somehow (using a customization?) set the MetaType of the Stereotype?

Forum Newbie
Forum Newbie
Posts: 3
Posts Rating:0
Joined: Thu Aug 17, 2017 7:38 am
Location: UK
Full name: James Towers

Re: Paste DSL Elements into Generic Table

Postby » Fri May 04, 2018 1:56 am


Yes, this copy/paste should work as expected, I've checked this use case with the 18.5 version.
You should set Element Type to your new stereotype. Please see image below:

Also, I've attached sample:

Best regards,
Donatas Mazeika
You do not have the required permissions to view the files attached to this post.
Forum Expert
Forum Expert
Posts: 121
Posts Rating:17
Joined: Tue Apr 21, 2015 12:30 am

Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests