Author Topic: Quick Linker and composite diagrams  (Read 3121 times)

MeryemAdb

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Quick Linker and composite diagrams
« on: July 17, 2014, 12:24:03 am »
Hello,

I have a UML profile with some elements that have a composite diagram. When those elements are created (in EA_OnPostNewElement), I apply a post-treatment to rename the composite diagram and to add the element at the center of the diagram.

This works well unless I am creating the element through the quick linker. In that case, when my treatment is called, the composite diagram has not been created yet (apparently). But after I create and rename the composite diagram a default composite diagram is created. I think it is created when I click OK on the Properties window.

Is there a way to either switch off the creation of the "default" composite diagram in my post-treatment or to postpone this treatment until after the diagram is created?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Quick Linker and composite diagrams
« Reply #1 on: July 17, 2014, 08:20:24 am »
I guess you would need to take the muddy path and somehow synch in your code with OnPostNewDiagram. This is probably going to be a PITA.

q.
« Last Edit: July 17, 2014, 08:20:40 am by qwerty »

MeryemAdb

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Quick Linker and composite diagrams
« Reply #2 on: July 17, 2014, 09:26:50 pm »
It occured to me that I have complete control over my profile, so I can define my classes as not composite in the profile and then make them composite and create the adequate diagrams in my post-treatment.

So, problem avoided !

Thanks a lot anyways.