Completely changed the structure and switched to Eclipse Plugin.
[Mograsim.git] / net.mograsim.logic.ui / src / net / mograsim / logic / ui / model / components / GUIOrGate.java
index d4fdb7f..8a983a2 100644 (file)
@@ -1,6 +1,9 @@
 package net.mograsim.logic.ui.model.components;
 
+import net.mograsim.logic.core.components.gates.OrGate;
 import net.mograsim.logic.ui.model.ViewModelModifiable;
+import net.mograsim.logic.ui.modeladapter.ViewLogicModelAdapter;
+import net.mograsim.logic.ui.modeladapter.componentadapters.SimpleGateAdapter;
 
 public class GUIOrGate extends SimpleRectangularGUIGate
 {
@@ -9,4 +12,9 @@ public class GUIOrGate extends SimpleRectangularGUIGate
                super(model, logicWidth, "\u22651", false);// ">=1"
                setInputCount(2);
        }
+
+       static
+       {
+               ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUIOrGate.class, OrGate::new));
+       }
 }
\ No newline at end of file