Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIxor.java
index dcf6c1f..537ed00 100644 (file)
@@ -7,6 +7,7 @@ import net.mograsim.logic.ui.model.components.submodels.SimpleRectangularSubmode
 import net.mograsim.logic.ui.model.wires.GUIWire;
 import net.mograsim.logic.ui.model.wires.Pin;
 import net.mograsim.logic.ui.model.wires.WireCrossPoint;
+import net.mograsim.logic.ui.serializing.IndirectGUIComponentCreator;
 
 public class GUIxor extends SimpleRectangularSubmodelComponent
 {
@@ -56,4 +57,9 @@ public class GUIxor extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, nandYB.getPin("Y"), nandY.getPin("B"));
                new GUIWire(submodelModifiable, nandY.getPin("Y"), Y);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIxor.class.getCanonicalName(), (m, p) -> new GUIxor(m));
+       }
 }
\ No newline at end of file