[Issue 5017] profile model elements are absent from diagrams on reload
| Newsgroups | gmane.comp.lang.uml.argouml.issues |
|---|---|
| Message-ID | <[email protected]> |
http://argouml.tigris.org/issues/show_bug.cgi?id=5017 ------- Additional comments from [email protected] Fri Aug 26 08:25:36 -0700 2011 ------- I tried to trace this bug with Patrick Hilsbos today and from our analysis there are two problems at work. The first problem is that the systemId is missing in the diagram file for profile elements. That could be fixed in the getUUID() method of the FacadeMDRImpl (for UML 1.4): ... if(ref == null) { return mofId; } else { if(ref.getSystemId().startsWith("http://argouml.org/")) { return ref.getSystemId() + "#" + ref.getXmiId(); } else { return ref.getXmiId(); } } ... I'm no expert in the inner workings of argouml, so I'm not sure if there are side effects. But with this change, the hrefs in the diagram files are correct for profile elements. The second problem is in the findOwner() method of the PGMLStackParser. The UUID map is initialized with the UUID map of the project which only contains the elements of the model which was loaded last and no elements of any profile. So no profile element can be resolved by the PGMLStackParser at the moment. The PGMLStackParser needs a combined UUID map containing model and profile elements or another way to resolve elements which are not found in the UUID map of the model. ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=448&dsMessageId=2830667 To unsubscribe from this list, e-mail: [[email protected]]. Please do not reply to this mail. Instead, add your comments in the issue.