Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / am2901 / GUIAm2901ALUInclDecode.java
index db2292d..79bbba6 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 GUIAm2901ALUInclDecode extends SimpleRectangularSubmodelComponent
 {
@@ -166,4 +167,10 @@ public class GUIAm2901ALUInclDecode extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, cpCnplus4, Cnplus4, new Point(130, 385), new Point(130, 180));
                new GUIWire(submodelModifiable, xorOVR.getPin("Y"), OVR);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUInclDecode.class.getCanonicalName(),
+                               (m, p) -> new GUIAm2901ALUInclDecode(m));
+       }
 }
\ No newline at end of file