Fixed Editor duplication of deserialized components
[Mograsim.git] / net.mograsim.logic.model.editor / src / net / mograsim / logic / model / editor / Editor.java
index e327915..e2dee42 100644 (file)
@@ -175,7 +175,9 @@ public final class Editor
 
        public static String getIdentifier(GUIComponent c)
        {
-               return identifierPerComponent.get(c);
+               if (identifierPerComponent.containsKey(c))
+                       return identifierPerComponent.get(c);
+               return "class:" + c.getClass().getCanonicalName();
        }
 
        public void duplicate()