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!
david.fields
Forum Newbie
Forum Newbie
 
Posts: 10
Posts Rating:5
Joined: Thu May 25, 2017 12:57 pm

Re: Add Icon to All Diagram Palettes

Postby jovita.bankauskaite@nomagic.com » Thu Jul 19, 2018 6:49 am

Hello,

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 https://docs.nomagic.com/display/MD190/ ... cro+Engine

Best regards,
No Magic, Inc. Customer Support
jovita.bankauskaite@nomagic.com
Forum Beginner
Forum Beginner
 
Posts: 35
Posts Rating:6
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.
dchristensen
Forum Newbie
Forum Newbie
 
Posts: 4
Posts Rating:0
Joined: Tue Nov 22, 2016 11:50 am

Re: Add Icon to All Diagram Palettes

Postby jeffreestary@gmail.com » Tue Jul 25, 2023 1:46 am

jovita.bankauskaite@nomagic.com wrote:Hello,

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 https://docs.nomagic.com/display/MD190/ ... cro+Engine immaculate grid

Best regards,
No Magic, Inc. Customer Support


You normally need to modify the UML metamodel in order to add a stereotype to the common group on all diagram palettes in modeling tools.
jeffreestary@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Tue Apr 25, 2023 8:37 pm

Re: Add Icon to All Diagram Palettes

Postby mullayarovoleg@rvmail.xyz » Wed Aug 09, 2023 3:48 am

Yes, I also used placeonPaletteProperty . Thank you very much
Super Mario
mullayarovoleg@rvmail.xyz
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Wed Aug 09, 2023 3:41 am


Return to DSL

Who is online

Users browsing this forum: No registered users and 1 guest