Book a Demo

Author Topic: Support default icons in toolboxes  (Read 9196 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Support default icons in toolboxes
« on: September 15, 2020, 12:01:42 am »
Hello,


In MDG technology development, if you specify an icon in an element or connector stereotype definition, that icon will be used in both the browser and the toolbox. You can set a different icon in the toolbox, but crucially, you can't specify that the default icon should be used in the toolbox.

So the support for custom icons looks like this:
  • Default in browser + default in toolbox: supported (don't specify any icon)
  • Default in browser + custom in toolbox: supported (specify an icon in the toolbox, but none in the stereotype)
  • Custom in browser + same custom in toolbox: supported (specify an icon in the stereotype, but none in the toolbox)
  • Custom in browser + different custom in toolbox: supported (specify an icon in the stereotype, and a different one in the toolbox)
  • Custom in browser + default in toolbox: not supported.

There seems to be a simple way to add support for this fifth case: if you add an icon to the toolbox in the normal way (by creating a new stereotype class with the special icon attribute, extending ToolboxItemImage) but leave the icon attribute's value empty, EA could interpret this to mean "use the default icon for the stereotype's metaclass in the toolbox even if there is a custom icon in the stereotype".

This change will not likely break existing toolbox profiles because there can't be many out there who have gone to the trouble of setting up the structure for a custom toolbox icon, but then left it empty.

Yes?


/Uffe
My theories are always correct, just apply them to the right reality.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Support default icons in toolboxes
« Reply #1 on: September 15, 2020, 07:56:16 am »
Sounds OK to me.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Support default icons in toolboxes
« Reply #2 on: September 15, 2020, 05:19:25 pm »
Reported.
/U
My theories are always correct, just apply them to the right reality.