From 934a1c357b5aac2df1039f38a59d698dd7971901 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Wed, 22 Feb 2023 20:21:30 +0100 Subject: [PATCH] Fix package and (temporary) remove generalization --- .../plantuml/xmi/XmiClassDiagramArgo.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/net/sourceforge/plantuml/xmi/XmiClassDiagramArgo.java b/src/net/sourceforge/plantuml/xmi/XmiClassDiagramArgo.java index 906a56655..726c1e1f4 100644 --- a/src/net/sourceforge/plantuml/xmi/XmiClassDiagramArgo.java +++ b/src/net/sourceforge/plantuml/xmi/XmiClassDiagramArgo.java @@ -52,25 +52,23 @@ public class XmiClassDiagramArgo extends XmiClassDiagramAbstract implements XmlD addPackage(ownedElementRoot, classDiagram.getRootGroup()); - for (final Link link : classDiagram.getLinks()) - addLink(link); +// for (final Link link : classDiagram.getLinks()) +// addLink(link); } final protected Element createElementPackage(Entity group) { - final Element ownedElement1 = document.createElement("UML:Namespace.ownedElement"); final Element umlPackage = document.createElement("UML:Package"); - ownedElement1.appendChild(umlPackage); umlPackage.setAttribute("xmi.id", group.getUid()); umlPackage.setAttribute("name", group.getDisplay().get(0).toString()); - final Element ownedElement2 = document.createElement("UML:Namespace.ownedElement"); - umlPackage.appendChild(ownedElement2); + final Element namespaceOwnedElement = document.createElement("UML:Namespace.ownedElement"); + umlPackage.appendChild(namespaceOwnedElement); - addPackage(ownedElement2, group); + addPackage(namespaceOwnedElement, group); - return ownedElement1; + return umlPackage; }