Hi,
Thank you for all the information guys, you've been really helpful. I've managed to get the topcased plugin that contains topcased DI metamodel definition, and I think the rest will work fine. --- En date de : Ven 19.6.09, [email protected] <[email protected]> a écrit :
De: [email protected] <[email protected]> Objet: Re: [Topcased-users] [DI]Diagram Interchange metamodel À: [email protected] Date: Vendredi 19 Juin 2009, 9h57
Here is a tip to open the *.umldi or *.sysmldi file using a tree structure editor : select the file, "right click > Open With > Other..." and then select "Diagrams Model Editor" in the dialog window. Regards, Jacques [email protected] a écrit :
Hi Stephane,
If you want to use Acceleo to transform *.umldi or *.sysmldi files, all you have to do is to select the metamodel "http://www.topcased.org/Diagrams/1.0" in Acceleo's wizard when you create a new generator, or type "metamodel http://www.topcased.org/Diagrams/1.0" just before the import statements in your *.mt file. This metamodel is delivered with the UML and SysML editors.
Here's a small script that will enable you to print the number of activity diagrams defined in a *.sysmldi file (by the way, you can learn a lot on *.umldi and *.sysmldi files by opening one in a simple text editor and by having a look at the xml tree in contains. That's how I came up with the 'semanticModel.presentation == "org.topcased.modeler.sysml.activitydiagram"' condition for instance) :
<%
metamodel http://www.topcased.org/Diagrams/1.0
%>
<%script type="model.Diagrams" name="dumpDiagramsInfo" post="trim()" file="<%if (parent == null) {%>ModelDiagramsInfo.txt<%}%>"%>
Number of activity diagrams :
<%descendant.filter("Diagram")[semanticModel.presentation == "org.topcased.modeler.sysml.activitydiagram"].nSize()%>
Regards,
Martin Neidert
-----Message d'origine-----
De : [email protected] [mailto:[email protected]] De la part de [email protected]
Envoyé : jeudi 18 juin 2009 11:25
À : [email protected]
Objet : [Topcased-users] [DI]Diagram Interchange metamodel
Hello,
I'm using TopCased as UML modeler as UML modeller and Acceleo as model-to-text framework. I have to generate code from TopCased class diagrams ( not from model but really from class diagramms ).
For that purpose, I need the Diagram interchange metamodel used by TopCased. Does someone know where I can find it ? I first thought that this could be a metamodel of one of the eclipse modelling projects. But a look in my umldi file showed that the namespace udes where Tocased name spaces.
I therefore guess that the meta-model used is specific to TopCased. That's why I looking for it here. If someone could help ...
Regards,
Stephane
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
--
|
Jacques LESCOT Project Manager Eclipse Technical Expert [email protected] Standard : +33(0)5 61 00 52 90 Direct : +33(0)5 61 00 06 60 Mobile : +33(0)6 74 49 23 34 Fax : +33(0)5 61 00 51 46 |
Anyware Technologies Lake Park ZAC de l'Hers - Allée du Lac BP 87216 31672 Labège Cedex France www.anyware-tech.com | | This message and any attachments (the "Message") are confidential and intended solely for the addressees. Any unauthorized modification, edition, use or dissemination is prohibited. Neither Anyware Technologies nor its headquarters Sierra Wireless shall be liable for the Message if altered, changed, falsified or edited, diffused without authorization. -----La pièce jointe associée suit-----
|
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users