Hello Tristan, Our workspace structure is as follows
Project gendoc.poc Models --> src/main/models UML Files --> gendoc.poc.uml --> gendoc.poc.umldi Output from my System.out.println are as follows UML File Location :: D:\Software\eclipse\workspace\gendoc.poc\src\main\models\gendoc.poc.uml EObject from loaded from IEMFModelLoaderService :: org.topcased.modeler.diagrams.model.internal.impl.DiagramsImpl@407e17 Diagrams from EObject :: [] Active Diagram is :: org.topcased.modeler.di.model.internal.impl.DiagramImpl@8e9ad3 (visible: true) (position: Point(0, 0)) (size: Dimension(100, 100)) (name: gendoc.poc, zoom: 1.0, viewport: Point(0, 0)) Diagrams from DiagramsUtils.findAllExistingDiagramForElement() :: [] Thanks and Regards, Dhananjay Ghanwat Technical Architect M +91 9960556644 dhananjay.ghan...@atos.net<mailto:dhananjay.ghan...@atos.net> Pune, Phase 2 www.atos.net<http://www.atos.net> [Description: atos_logotype] From: topcased-users-boun...@gforge.enseeiht.fr [mailto:topcased-users-boun...@gforge.enseeiht.fr] On Behalf Of Topcased user list where issues are discussed Sent: 27 March 2012 19:10 To: topcased-us...@gforge.enseeiht.fr Subject: Re: [Topcased-users] GenDoc and Class Diagrams Hi Can you copy paste the result of trace and the structure of your files in your workspace ? Regards Tristan FAURE De : topcased-users-boun...@gforge.enseeiht.fr [mailto:topcased-users-boun...@gforge.enseeiht.fr] De la part de Topcased user list where issues are discussed Envoyé : mardi 27 mars 2012 10:14 À : topcased-us...@gforge.enseeiht.fr Objet : [Topcased-users] GenDoc and Class Diagrams Hello, I am getting some problems while displaying my diagrams using GenDoc2. All our models are created using Topcased. I have a model which has class diagrams. However when I try to display the class diagrams using <image> tag, I always get blank. On further debugging, I tried to load the model myself using the below code just to see what is happening inside IContextService contextService = GendocServices.getDefault().getService(IContextService.class); contextService.setModel(umlFile.getLocationPath()); IEMFModelLoaderService modelLoaderService = GendocServices.getDefault().getService(IEMFModelLoaderService.class); EObject object = modelLoaderService.getModel(URI.createURI(contextService.getModelPath() + "di")); Diagrams dig = (Diagrams) object; System.out.println("diagrams " + dig.getDiagrams()); System.out.println("EObject is " + dig.getActiveDiagram()); List<Diagram> diagrams = DiagramsUtils.findAllExistingDiagramForElement(dig, true); System.out.println("diagrams " + diagrams); Using the above code, I always get Diagrams as empty list. I get no exceptions, I can see the model being loaded, but every time Diagrams is an empty list. I tried this with multiple files, but same result. Am I doing something wrong here? Thanks and Regards, Dhananjay Ghanwat Technical Architect M +91 9960556644 dhananjay.ghan...@atos.net<mailto:dhananjay.ghan...@atos.net> Pune, Phase 2 www.atos.net<http://www.atos.net> [Description: atos_logotype] ________________________________ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. ________________________________ ________________________________ Ce message et les pièces jointes sont confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut également être protégé par le secret professionnel. Si vous recevez ce message par erreur, merci d'en avertir immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant être assurée sur Internet, la responsabilité du groupe Atos ne pourra être engagée quant au contenu de ce message. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.
<<inline: image001.gif>>
<<inline: image002.gif>>
_______________________________________________ Topcased-users mailing list Topcased-users@lists.gforge.enseeiht.fr http://lists.gforge.enseeiht.fr/cgi-bin/mailman/listinfo/topcased-users