Book a Demo

Author Topic: Create link between packages if objects are linked  (Read 2611 times)

Monsieur

  • EA User
  • **
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Create link between packages if objects are linked
« on: November 28, 2014, 01:22:44 am »
Hello!

I have created my own profile, toolbox, diagram (as now encouraged in the new EA). [smiley=beer.gif] [smiley=beer.gif]
My profile is composed of a few elements (my packages, my elements, my connectors) by extending the correspondent metaclass.

Does any know how to create a link between to packages IF and ONLY IF there is object linked in those packages?

example:
package A
objA

Package B
ObjB
ObjC

if objA --> obj B
then PackA --> PackB

+if i remove the link between obj it will remove the one between package
+ I dont add one link per link created at the object lvl but only if one link of this type exist (so if i add objA --> objC it will not create a 2nd link at package level since there is already this type of link between objA and objB)

The purpose of this manipulation will be to have at a metalevel a package diagram where i can see all the type of links (created at object level) between the packages

I don’t know if I made myself clear :-[ . but I can give more explications :D

ps: Today I work on EA9.3 (booooooooo) and i am testing EA11.1 (corporate) in order to upgrade (maybe?) if the new feature has a real interest.

ps2: I am a newbie at customizing EA. Please be as detailed as you can be!


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create link between packages if objects are li
« Reply #1 on: November 28, 2014, 02:10:44 am »
Again you need to subscribe - in this case to EA_OnPreNewConnector. There you can check the constraint and dis-/allow creation of a connector.

q.