Dear all,
I am writing a plug-in for Topcased that extend an UML Interaction with new elements. I have a new elements in the Interaction in the model. Now my question is how to add these elements to the Topcased diagram?
I use old diagrams, NOT Papyrus.
Currently I have code:
List<Diagram> diags = DiagramsUtils.findAllExistingDiagram(modeler.getDiagrams(), interaction);
        for (Diagram di : diags) {
if (di.getSemanticModel().getPresentation().equals(DIAGRAM_ID)) {
                //here do something with di
            }
        }
that filter the diagrams to extend with new elements.
Having Diagram object, how to add e.g. Lifeline to the diagram so it is visible? (it already exist in the model) I am browsing the source, but it is not easy to figure out the simplest way to do it.

Thanks for any help.

--
Piotr Jacek Puczynski
Technical University of Denmark (DTU)
Department of Informatics and Mathematical Modelling
Danish National Space Center


_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users

Reply via email to