Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIsel3_4.java
index 20c8fb4..83440ee 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 GUIsel3_4 extends SimpleRectangularSubmodelComponent
 {
@@ -109,4 +110,9 @@ public class GUIsel3_4 extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, nandY3.getPin("Y"), Y3, new Point[0]);
                new GUIWire(submodelModifiable, nandY4.getPin("Y"), Y4, new Point[0]);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIsel3_4.class.getCanonicalName(), (m, p) -> new GUIsel3_4(m));
+       }
 }
\ No newline at end of file