Author Topic: MDG grammar - how to create connectors?  (Read 3008 times)

Yarblek

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
MDG grammar - how to create connectors?
« on: August 25, 2014, 05:56:07 am »
Hi

I'm developing a grammar and code templates for a bespoke language.  The grammar works OK, and code generation works OK.  What I can't figure out is how connectors get generated.  This is particularly important because I want to see the relationships between the generated classes (e.g. if ClassA has a reference to ClassB, then I'd like that to be a connector of some kind).

The AST documentation here doesn't seem to have anything obvious; http://www.sparxsystems.com/enterprise_architect_user_guide/10/extending_uml_models/context_labels.html

The output from running "model synchronization" suggests that this is possible, because it includes lines like:

...
--relationships for ClassA
--linking with existing attributes
...



Am I missing something obvious?  The only option I can see is writing an addin, but that seems a little crazy.

Thanks!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: MDG grammar - how to create connectors?
« Reply #1 on: August 25, 2014, 08:46:52 am »
It creates associations from Attributes, Generalizations and Realizations from parents.