Book a Demo

Author Topic: Configuring EA with MDG  (Read 3004 times)

floerio

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Configuring EA with MDG
« on: September 29, 2008, 09:04:00 pm »
Hi!

We already have confgured the EA with the MDG Technologie in serveral ways like adding customized elements or new diagram types.

What we also want (if this is possible) is to modify the list of possible diagrams visible when selecting the "Add" function of an element's context menu.

When I currently select the "Add" on the context menu of af UC or a Class I see a list of  the typical UML Diagrams like activity, state etc. But I would like to see "my" customized diagrams as well. I know this selection is only a pre selection because, having selected a diagram, one gets the normal "New diagram" dialog where you still can change the type, but it would be nice to have this kind of pre selection.

Does any knows about this topic?

Cheers,
   Oliver

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Configuring EA with MDG
« Reply #1 on: September 30, 2008, 09:25:49 am »
This behaviour was changed for build 832. In 7.1.831, if you right-clicked a Component (for example), you would see separate commands to add Analysis, Activity, Communication, Sequence or Statechart diagrams. Because each command did the same thing - open the New Diagram dialog - these were combined into a single "Add Diagram" command for 7.1.832.

The Sparx Team
[email protected]

floerio

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Configuring EA with MDG
« Reply #2 on: September 30, 2008, 05:24:56 pm »
Ok, thank you for the info. Will install than the new build.

... but it would be a nice feature to have this configurable by MDG like

"Add ...
* My own Diagram type 1
* My own Diagram type 2
* New Diagram [Link to "New diagram" dialog]

 :)

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: Configuring EA with MDG
« Reply #3 on: October 03, 2008, 11:56:58 am »
You may as well consider handling EA_GetMenuItems/ EA_GetMenuState Addin-Events ( please refer EA help: SDK for Enterprise Architect -> Enterprise Architect Addin-Model->Addin Events ) to define your own customized context menu ( you can also use the current context object to decide upon the menu state ) and use this menu instead of the "Add Diagram.." dialog..

HTH

floerio

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Configuring EA with MDG
« Reply #4 on: October 04, 2008, 04:38:41 am »
Hi!

Thank you for the hint, i will check this.

Oliver