Hi, I have one question and I will explain what I found on java code generation, maybe it can help someone else.
Question : ================ I thought that messages were ordered in a sequence diagram, is it not right ? If they are, where this order is stored in an UML model and how to display the order number in a sequence diagram ? I look at the UML standard (OMG Unified Modeling LanguageTM (OMG UML), Superstructure, V2.2) and to topcased tutorials but I did not find my answer. Remarks on java code generation ================================ It took me few days to understand the following, maybe it will help other people. Topcase integrates acceleo engine to generate files from an UML model, to process a UML model, acceleo uses at least two files : 1 - the xmi file of the UML model 2 - templates files, which are *.mt files To generate java files, the topcased project has to be saved before otherwise the xmi file does not contain the model and generated files are not as expected. The content of generated java files is defined by some template files, for the concern of methods, two files are used : 1 - class.mt, the one in org.eclipse.osgi\bundles\466\1\.cp\org\acceleo\module\pim\uml21\gen\java 2 - behavior.mt, the one in org.eclipse.osgi\bundles\466\1\.cp\org\acceleo\module\pim\uml21\gen\java\lib (in my installation there are two class.mt files and two behavior.mt files) The template used to generate method code is behavior.mt, but this template does not take in account interaction fragment. It explains why sequence diagrams are not used to generate java code. Cordialement, Bernard Granier CE Plateforme Système [email protected] 01 58 11 32 51 # " Ce courriel et les documents qui lui sont joints peuvent contenir des informations confidentielles ou ayant un caractère privé. S'ils ne vous sont pas destinés, nous vous signalons qu'il est strictement interdit de les divulguer, de les reproduire ou d'en utiliser de quelque manière que ce soit le contenu. Si ce message vous a été transmis par erreur, merci d'en informer l'expéditeur et de supprimer immédiatement de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés." ****** " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
