Commits

Anonymous committed dc96e69

A minor bug is resolved, instance nodes should not have the information copied in the XML result, it might not be the best way to solve this problem though but the easiest

Comments (0)

Files changed (1)

src/nl/tudelft/lime/xml/XMLFactory.java

                 if (element instanceof LimeCodeFragment) {
                     continue;
                 }
-
                 Element item = getXML(element);
+                //FURTHER WHEN arcs are created if it is an instance remove its children
                 root.add(item);
 
                 //if the interior ports had arcs, their component is responsible to handle them
 
                     item.remove(dummyAssociation);
                 }
+                //if it was an instance then clear its contents
+                if ((part instanceof LimeComponent) &&
+                	((LimeComponent)part).isInstance()){
+                	root.remove(item);
+                }
             }
 
             //edges and associations should be added after all the child nodes are added