Book a Demo

Author Topic: Document profile elements  (Read 2944 times)

MeryemAdb

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Document profile elements
« on: August 12, 2014, 11:24:20 pm »
Hello,

I have a MDG with custom stereotypes that I call from an add-in. I'd like to know if it is possible to document those stereotypes, by  (ideally) replacing the help content displayed when the user right clicks on my element and select "UML help".

If this is not possible, I have an add-in, so I can add a menu item "Help on selected element". I would like to be able to open a help tab (similar to the result of "EASystem::ShowDoc" from a learning center page). I can use a web browser control to show my documentation as HTML, but the links to EA guide do not seem to work as it is Microsoft compiled HTML.

Any ideas on how to achieve my goal of documenting my stereotypes while having links to EA inner documentation ?

Thanks in advance.


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Document profile elements
« Reply #1 on: August 13, 2014, 02:36:39 am »
Not sure if that helps but if you add a help entry to you add-in menu your add-in is called and you can retrieve the selected element. EA_GetMenuState should also return the context (works for me) but there seems to be some bug where it will return Diagram in all cases. But pretending this will work you could evaluate the selected element correctly and show some help related to the selected element.

q.