Book a Demo

Author Topic: Code generation across root nodes  (Read 3087 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Code generation across root nodes
« on: May 10, 2013, 08:46:51 pm »
Hi
My model has 2 root nodes and I am having some troubles with generating code
root node 1 has this structure -
Common [highlight]node[/highlight]
    Class Model [highlight]view[/highlight]
        Common1 [highlight]package[/highlight]
            Common2 [highlight]package[/highlight]
                Class1
root node 2 has this strcuture
Model [highlight]node[/highlight]
    Class Model [highlight]view[/highlight]
        Class1 [highlight]class[/highlight]

Now I want Class1 in root node 2 to derive from Class1 in root node 2, so I draw this on a class diagram and generate the code. The code is correct
Code: [Select]
class Class1: public Common1::Common2::Class1

HOWEVER, if I now synchronise the code the generalisation connector is removed.

This is not the case if I derive from a class within the same root node.

Have I missed something or is this a bug?
Using V12