Add Icon to All Diagram Palettes

Discussions about Domain Specific Language customizations

Moderator: Moderators

Add Icon to All Diagram Palettes

Postby david.fields » Wed Jun 20, 2018 2:44 pm

We have created a stereotype for tracking modeling task (metaclass is Comment) that would like to appear on every diagram palette alongside Comment, Rational, Problem, etc. I can add a placeonPaletteProperty under the customization but not only does it only allow me to select one diagram type at a time but I also only what I am assuming are the custom diagrams (UPDM, MDK, etc.). I don't see the option to add it BDD's, IBD's, etc.

Is there any way to easily add an icon to the common group on all diagram palettes? Any help would be greatly appreciated!
Forum Newbie
Forum Newbie
Posts: 10
Posts Rating:4
Joined: Thu May 25, 2017 12:57 pm

Re: Add Icon to All Diagram Palettes

Postby » Thu Jul 19, 2018 6:49 am


Unfortunately, you can specify only one diagram type using placeonPaletteProperty under the customization.

Another way is to write a script which will add this additional element into a palette for all diagrams.
Read more ... cro+Engine

Best regards,
No Magic, Inc. Customer Support
Forum Beginner
Forum Beginner
Posts: 33
Posts Rating:3
Joined: Wed Jan 24, 2018 7:24 am

Re: Add Icon to All Diagram Palettes

Postby dchristensen » Tue Nov 13, 2018 1:37 pm

An alternative I've used is to create a customization for your special comment stereotype and add "Comment" into the "Quick Applying For" property. That way the user can create a basic comment object, right click on it, and select "modeling task" from the context menu to apply the stereotype. This works on any diagram.
Forum Newbie
Forum Newbie
Posts: 4
Posts Rating:0
Joined: Tue Nov 22, 2016 11:50 am

Return to DSL

Who is online

Users browsing this forum: No registered users and 0 guests