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 / GUIAm2901ALUFuncDecode.java
index 339b18a..f08898f 100644 (file)
@@ -9,6 +9,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 GUIAm2901ALUFuncDecode extends SimpleRectangularSubmodelComponent
 {
@@ -106,4 +107,10 @@ public class GUIAm2901ALUFuncDecode extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, nandL.getPin("Y"), L, new Point[0]);
                new GUIWire(submodelModifiable, andSBE.getPin("Y"), SBE, new Point[0]);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUFuncDecode.class.getCanonicalName(),
+                               (m, p) -> new GUIAm2901ALUFuncDecode(m));
+       }
 }
\ No newline at end of file