Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Yarblek 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!
-
It creates associations from Attributes, Generalizations and Realizations from parents.