Anonymous avatar Anonymous committed 2c45b14

(no commit message)

Comments (0)

Files changed (2)

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

         // if the document is not correct, it should be handled by the caller
         // class
         if ((doc.getRootElement() == null) ||
-                !"gxf".equals(doc.getRootElement().getName())) {
+                !SystemSettings.GXF_TAG.equals(doc.getRootElement().getName())) {
             throw new XMLFormatNotCorrectException();
         }
 
         // configure component specific fields
         // if it is the root element or it is a node, then it might have some
         // edge elements
-        if ("gxf".equals(element.getName()) ||
+        if (SystemSettings.GXF_TAG.equals(element.getName()) ||
         		SystemSettings.NODE_TAG.equals(element.getName())) {
             // for these elements first create all the arcs inside them, and
             // then
     private static LimeSubpart createLimeSubpart(Element element) {
         String name = element.getName();
 
-        if ("gxf".equals(name)) {
+        if (SystemSettings.GXF_TAG.equals(name)) {
             return new LimeDiagram();
         }
 
         root.add(new DefaultAttribute(SystemSettings.XLINK_TYPE_ATTRIBUTE, "resource"));
 
         root.add(new DefaultAttribute(SystemSettings.XLINK_LABEL_ATTRIBUTE,
-                limeSubpart.getRevisedName()));
+                getParentChildPath(limeSubpart)));
 
         // if it goes beyond two-dimension we should still be able to define it
     }

src/system.properties

 SIZE_TAG=size
 LOCATION_TAG=location
 DIMENSION_TAG=dimension
-GXF_TAG=gxf 
+GXF_TAG=gxf
 ID_ATTRIBUTE=id
 VALUE_ATTRIBUTE=value
 #Normal Icons Path
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.