Author Topic: Element marker in tree view  (Read 11980 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Element marker in tree view
« Reply #15 on: November 26, 2015, 09:51:59 am »
Quote
Quote
There's a note somewhere that says that if you add the icon, that you also have to fill in in the Metatype. If you don't it doesn't work (silently of course)
This
Indeed, and if you do that you don't even have to define an icon on the toolbox profile.
It will automatically use the icon from the stereotype.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Element marker in tree view
« Reply #16 on: November 26, 2015, 10:20:10 am »
So can anyone tell me as to where I have to add [highlight]Icon[/highlight] and where not? I first had it just in the ToolBoxItemImage (which showed it in the toolbox). Then I tried adding it to metaclass and later even to the stereotype. I AM CONFUSED.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Element marker in tree view
« Reply #17 on: November 26, 2015, 10:52:37 am »
The «stereotype» class must have two attributes: Icon and _metatype. That's all.

You can also add Icon attribute to the stereotype that extends ToolboxItemImage in the toolbox profile, but you will probably only need to for hidden submenus or patterns.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Element marker in tree view
« Reply #18 on: November 26, 2015, 11:05:16 am »
Aaahhh! Thank you! I'll have to try that tomorrow.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Element marker in tree view
« Reply #19 on: November 26, 2015, 11:24:47 pm »
Finally I got it to work. It's not only that you need to add _metatype. Moreover it must be unique. I first tried with _metatype=Class but that did not work (my instinct in finding traps does not always help). Once I defined _metatype=Bike the icon did appear. Thanks to all!

q.