Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a KNode (via createNode()) for each element comprised by the given instance model (usually called the business, domain, or semantic model) of your data type, here EPackage, and add that . Add those nodes to the children of root. Create a KEdge for each relation or link to be contained in your diagram. You can use Similarly to createNode() there is createEdge() for that purpose. Set source and target node of those edges accordingly, this will implicitly add the edges to the diagram (via EMF's EOpposite mechanism). You can reveal an already created node representing a certain domain element by calling domainElement.getNode(), or simply domainElement.node. Have a look at UML2UseCaseDiagramSynthesis, which is part of our examples project, on how to do that.

Finally attach figure specifications to the nodes and edges, most conveniently by means of the extension methods provided by the ...Extension classes mentioned in the diagram synthesis template. Have a look at UML2UseCaseDiagramSynthesis, which is part of our examples project, on how to do that. A documentation of the convenience methods provided by the extension classes those methods can be found here. (Yes there is some lack of documentation...)

 Incorporated Technologies

...