Replaced "provider" in identifiers with "supplier"
authorDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 8 Jul 2019 08:44:09 +0000 (10:44 +0200)
committerDaniel Kirschten <daniel.kirschten@gmx.de>
Mon, 8 Jul 2019 08:44:09 +0000 (10:44 +0200)
45 files changed:
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUI_rsLatch.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIand.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIand41.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIandor414.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdemux2.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdff.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIfulladder.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIhalfadder.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1_4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUInand3.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUInot4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIor4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIor_4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIram2.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIram4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel2_4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel3_4.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIxor.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901ALUFuncDecode.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901ALUInclDecode.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901ALUInclSourceDecodeInclFunctionDecode.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901ALUOneBit.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901DestDecode.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901QReg.java
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/am2901/GUIAm2901SourceDecode.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIAndGate.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIBitDisplay.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIManualSwitch.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINandGate.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUINotGate.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIOrGate.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/TextComponent.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/WireCrossPoint.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/CodeSnippetSupplier.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/IndirectGUIComponentCreator.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/SubmodelComponentDeserializer.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/snippets/outlinerenderers/DefaultOutlineRenderer.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/snippets/symbolrenderers/CenteredTextSymbolRenderer.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/snippets/symbolrenderers/DefaultSymbolRenderer.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/snippets/symbolrenderers/SimpleRectangularLikeSymbolRenderer.java
net.mograsim.logic.ui/src/net/mograsim/logic/ui/serializing/standardSnippetIDMapping.json

index b190ffa..cc667b0 100644 (file)
@@ -99,6 +99,6 @@ public class GUI_rsLatch extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUI_rsLatch.class.getCanonicalName(), (m, p) -> new GUI_rsLatch(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUI_rsLatch.class.getCanonicalName(), (m, p) -> new GUI_rsLatch(m));
        }
 }
\ No newline at end of file
index b21474e..d362869 100644 (file)
@@ -46,6 +46,6 @@ public class GUIand extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIand.class.getCanonicalName(), (m, p) -> new GUIand(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIand.class.getCanonicalName(), (m, p) -> new GUIand(m));
        }
 }
\ No newline at end of file
index fc1a5bd..5ba774f 100644 (file)
@@ -68,6 +68,6 @@ public class GUIand41 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIand41.class.getCanonicalName(), (m, p) -> new GUIand41(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIand41.class.getCanonicalName(), (m, p) -> new GUIand41(m));
        }
 }
\ No newline at end of file
index c514d4c..9b1a859 100644 (file)
@@ -66,6 +66,6 @@ public class GUIandor414 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIandor414.class.getCanonicalName(), (m, p) -> new GUIandor414(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIandor414.class.getCanonicalName(), (m, p) -> new GUIandor414(m));
        }
 }
\ No newline at end of file
index 1f1940b..4e8ad6d 100644 (file)
@@ -89,6 +89,6 @@ public class GUIdemux2 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIdemux2.class.getCanonicalName(), (m, p) -> new GUIdemux2(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIdemux2.class.getCanonicalName(), (m, p) -> new GUIdemux2(m));
        }
 }
\ No newline at end of file
index 440f4d1..7b84010 100644 (file)
@@ -97,6 +97,6 @@ public class GUIdff extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIdff.class.getCanonicalName(), (m, p) -> new GUIdff(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIdff.class.getCanonicalName(), (m, p) -> new GUIdff(m));
        }
 }
\ No newline at end of file
index ff15892..8258934 100644 (file)
@@ -86,6 +86,6 @@ public class GUIdlatch extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIdlatch.class.getCanonicalName(), (m, p) -> new GUIdlatch(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIdlatch.class.getCanonicalName(), (m, p) -> new GUIdlatch(m));
        }
 }
\ No newline at end of file
index 10ee84d..1c1f838 100644 (file)
@@ -136,6 +136,6 @@ public class GUIdlatch4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIdlatch4.class.getCanonicalName(), (m, p) -> new GUIdlatch4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIdlatch4.class.getCanonicalName(), (m, p) -> new GUIdlatch4(m));
        }
 }
\ No newline at end of file
index 7ec7771..a880186 100644 (file)
@@ -49,6 +49,6 @@ public class GUIfulladder extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIfulladder.class.getCanonicalName(), (m, p) -> new GUIfulladder(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIfulladder.class.getCanonicalName(), (m, p) -> new GUIfulladder(m));
        }
 }
\ No newline at end of file
index 7a80a95..a31eae5 100644 (file)
@@ -62,6 +62,6 @@ public class GUIhalfadder extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIhalfadder.class.getCanonicalName(), (m, p) -> new GUIhalfadder(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIhalfadder.class.getCanonicalName(), (m, p) -> new GUIhalfadder(m));
        }
 }
\ No newline at end of file
index 291f628..ea39de9 100644 (file)
@@ -58,6 +58,6 @@ public class GUImux1 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUImux1.class.getCanonicalName(), (m, p) -> new GUImux1(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUImux1.class.getCanonicalName(), (m, p) -> new GUImux1(m));
        }
 }
\ No newline at end of file
index ff0353b..85afdf5 100644 (file)
@@ -77,6 +77,6 @@ public class GUImux1_4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUImux1_4.class.getCanonicalName(), (m, p) -> new GUImux1_4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUImux1_4.class.getCanonicalName(), (m, p) -> new GUImux1_4(m));
        }
 }
\ No newline at end of file
index 39d29e2..4443e21 100644 (file)
@@ -51,6 +51,6 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUInand3.class.getCanonicalName(), (m, p) -> new GUInand3(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUInand3.class.getCanonicalName(), (m, p) -> new GUInand3(m));
        }
 }
\ No newline at end of file
index 13d2b1f..7a16509 100644 (file)
@@ -71,6 +71,6 @@ public class GUInot4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUInot4.class.getCanonicalName(), (m, p) -> new GUInot4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUInot4.class.getCanonicalName(), (m, p) -> new GUInot4(m));
        }
 }
\ No newline at end of file
index 9f7dde4..a3caf9d 100644 (file)
@@ -91,6 +91,6 @@ public class GUIor4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIor4.class.getCanonicalName(), (m, p) -> new GUIor4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIor4.class.getCanonicalName(), (m, p) -> new GUIor4(m));
        }
 }
\ No newline at end of file
index ba10373..0fd0dcf 100644 (file)
@@ -119,6 +119,6 @@ public class GUIor_4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIor_4.class.getCanonicalName(), (m, p) -> new GUIor_4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIor_4.class.getCanonicalName(), (m, p) -> new GUIor_4(m));
        }
 }
\ No newline at end of file
index f0bbf49..5f45b59 100644 (file)
@@ -323,6 +323,6 @@ public class GUIram2 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIram2.class.getCanonicalName(), (m, p) -> new GUIram2(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIram2.class.getCanonicalName(), (m, p) -> new GUIram2(m));
        }
 }
\ No newline at end of file
index 35d3df5..8b532d4 100644 (file)
@@ -361,6 +361,6 @@ public class GUIram4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIram4.class.getCanonicalName(), (m, p) -> new GUIram4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIram4.class.getCanonicalName(), (m, p) -> new GUIram4(m));
        }
 }
\ No newline at end of file
index fadfd38..2bf9e98 100644 (file)
@@ -115,6 +115,6 @@ public class GUIsel2_4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIsel2_4.class.getCanonicalName(), (m, p) -> new GUIsel2_4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIsel2_4.class.getCanonicalName(), (m, p) -> new GUIsel2_4(m));
        }
 }
\ No newline at end of file
index 83440ee..58931d4 100644 (file)
@@ -113,6 +113,6 @@ public class GUIsel3_4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIsel3_4.class.getCanonicalName(), (m, p) -> new GUIsel3_4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIsel3_4.class.getCanonicalName(), (m, p) -> new GUIsel3_4(m));
        }
 }
\ No newline at end of file
index 537ed00..f1058e1 100644 (file)
@@ -60,6 +60,6 @@ public class GUIxor extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIxor.class.getCanonicalName(), (m, p) -> new GUIxor(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIxor.class.getCanonicalName(), (m, p) -> new GUIxor(m));
        }
 }
\ No newline at end of file
index ec3cf86..420526e 100644 (file)
@@ -348,6 +348,6 @@ public class GUIAm2901 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901.class.getCanonicalName(), (m, p) -> new GUIAm2901(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901.class.getCanonicalName(), (m, p) -> new GUIAm2901(m));
        }
 }
\ No newline at end of file
index f08898f..09eeab4 100644 (file)
@@ -110,7 +110,7 @@ public class GUIAm2901ALUFuncDecode extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUFuncDecode.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUFuncDecode.class.getCanonicalName(),
                                (m, p) -> new GUIAm2901ALUFuncDecode(m));
        }
 }
\ No newline at end of file
index 79bbba6..856f6a1 100644 (file)
@@ -170,7 +170,7 @@ public class GUIAm2901ALUInclDecode extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUInclDecode.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUInclDecode.class.getCanonicalName(),
                                (m, p) -> new GUIAm2901ALUInclDecode(m));
        }
 }
\ No newline at end of file
index 784e200..578ba81 100644 (file)
@@ -141,7 +141,7 @@ public class GUIAm2901ALUInclSourceDecodeInclFunctionDecode extends SimpleRectan
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUInclSourceDecodeInclFunctionDecode.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUInclSourceDecodeInclFunctionDecode.class.getCanonicalName(),
                                (m, p) -> new GUIAm2901ALUInclSourceDecodeInclFunctionDecode(m));
        }
 }
\ No newline at end of file
index c35f7cf..42b2357 100644 (file)
@@ -90,6 +90,6 @@ public class GUIAm2901ALUOneBit extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUOneBit.class.getCanonicalName(), (m, p) -> new GUIAm2901ALUOneBit(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUOneBit.class.getCanonicalName(), (m, p) -> new GUIAm2901ALUOneBit(m));
        }
 }
\ No newline at end of file
index defe85b..7c7f380 100644 (file)
@@ -146,7 +146,7 @@ public class GUIAm2901DestDecode extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901DestDecode.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901DestDecode.class.getCanonicalName(),
                                (m, p) -> new GUIAm2901DestDecode(m));
        }
 }
\ No newline at end of file
index 804e85d..cdea0b7 100644 (file)
@@ -144,6 +144,6 @@ public class GUIAm2901QReg extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901QReg.class.getCanonicalName(), (m, p) -> new GUIAm2901QReg(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901QReg.class.getCanonicalName(), (m, p) -> new GUIAm2901QReg(m));
        }
 }
\ No newline at end of file
index d0ef4d5..585ab83 100644 (file)
@@ -152,7 +152,7 @@ public class GUIAm2901SourceDecode extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901SourceDecode.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901SourceDecode.class.getCanonicalName(),
                                (m, p) -> new GUIAm2901SourceDecode(m));
        }
 }
\ No newline at end of file
index 0b1a497..ef83740 100644 (file)
@@ -17,6 +17,6 @@ public class GUIAndGate extends SimpleRectangularGUIGate
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUIAndGate.class, AndGate::new));
-               IndirectGUIComponentCreator.setComponentProvider(GUIAndGate.class.getCanonicalName(), (m, p) -> new GUIAndGate(m, p.getAsInt()));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAndGate.class.getCanonicalName(), (m, p) -> new GUIAndGate(m, p.getAsInt()));
        }
 }
\ No newline at end of file
index de755cd..8311d7d 100644 (file)
@@ -84,6 +84,6 @@ public class GUIBitDisplay extends GUIComponent
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new BitDisplayAdapter());
-               IndirectGUIComponentCreator.setComponentProvider(GUIBitDisplay.class.getCanonicalName(), (m, p) -> new GUIBitDisplay(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIBitDisplay.class.getCanonicalName(), (m, p) -> new GUIBitDisplay(m));
        }
 }
\ No newline at end of file
index 285cd16..0329e96 100644 (file)
@@ -138,6 +138,6 @@ public class GUIManualSwitch extends GUIComponent
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new ManualSwitchAdapter());
-               IndirectGUIComponentCreator.setComponentProvider(GUIManualSwitch.class.getName(), (m, p) -> new GUIManualSwitch(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIManualSwitch.class.getName(), (m, p) -> new GUIManualSwitch(m));
        }
 }
\ No newline at end of file
index f07b432..bcaab1c 100644 (file)
@@ -17,6 +17,6 @@ public class GUINandGate extends SimpleRectangularGUIGate
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUINandGate.class, NandGate::new));
-               IndirectGUIComponentCreator.setComponentProvider(GUINandGate.class.getCanonicalName(), (m, p) -> new GUINandGate(m, p.getAsInt()));
+               IndirectGUIComponentCreator.setComponentSupplier(GUINandGate.class.getCanonicalName(), (m, p) -> new GUINandGate(m, p.getAsInt()));
        }
 }
\ No newline at end of file
index f6ef024..6f1acd4 100644 (file)
@@ -17,6 +17,6 @@ public class GUINotGate extends SimpleRectangularGUIGate
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUINotGate.class, (t, p, o, i) -> new NotGate(t, p, i[0], o)));
-               IndirectGUIComponentCreator.setComponentProvider(GUINotGate.class.getCanonicalName(), (m, p) -> new GUINotGate(m, p.getAsInt()));
+               IndirectGUIComponentCreator.setComponentSupplier(GUINotGate.class.getCanonicalName(), (m, p) -> new GUINotGate(m, p.getAsInt()));
        }
 }
\ No newline at end of file
index 50050e0..e69410c 100644 (file)
@@ -17,6 +17,6 @@ public class GUIOrGate extends SimpleRectangularGUIGate
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUIOrGate.class, OrGate::new));
-               IndirectGUIComponentCreator.setComponentProvider(GUIOrGate.class.getCanonicalName(), (m, p) -> new GUIOrGate(m, p.getAsInt()));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIOrGate.class.getCanonicalName(), (m, p) -> new GUIOrGate(m, p.getAsInt()));
        }
 }
\ No newline at end of file
index d7255d3..84766f6 100644 (file)
@@ -52,6 +52,6 @@ public class TextComponent extends GUIComponent
        static
        {
                ViewLogicModelAdapter.addComponentAdapter(new NoLogicAdapter<>(TextComponent.class));
-               IndirectGUIComponentCreator.setComponentProvider(TextComponent.class.getName(), (m, p) -> new TextComponent(m, p.getAsString()));
+               IndirectGUIComponentCreator.setComponentSupplier(TextComponent.class.getName(), (m, p) -> new TextComponent(m, p.getAsString()));
        }
 }
index 7a2fcf4..58e3a02 100644 (file)
@@ -117,7 +117,7 @@ public class WireCrossPoint extends GUIComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(WireCrossPoint.class.getCanonicalName(),
+               IndirectGUIComponentCreator.setComponentSupplier(WireCrossPoint.class.getCanonicalName(),
                                (m, p) -> new WireCrossPoint(m, p.getAsInt()));
        }
 }
\ No newline at end of file
index c17c291..0c27461 100644 (file)
@@ -14,24 +14,24 @@ import net.mograsim.logic.ui.util.JsonHandler;
 public class CodeSnippetSupplier<S>
 {
        // public static members
-       public static final CodeSnippetSupplier<Renderer> symbolRendererProviderSupplier;
-       public static final CodeSnippetSupplier<Renderer> outlineRendererProviderSupplier;
+       public static final CodeSnippetSupplier<Renderer> symbolRendererSupplier;
+       public static final CodeSnippetSupplier<Renderer> outlineRendererSupplier;
 
        static
        {
-               symbolRendererProviderSupplier = new CodeSnippetSupplier<>(SnippetSupplier.create(Void.class, DefaultSymbolRenderer::new));
-               outlineRendererProviderSupplier = new CodeSnippetSupplier<>(SnippetSupplier.create(Void.class, DefaultOutlineRenderer::new));
+               symbolRendererSupplier = new CodeSnippetSupplier<>(SnippetSupplier.create(Void.class, DefaultSymbolRenderer::new));
+               outlineRendererSupplier = new CodeSnippetSupplier<>(SnippetSupplier.create(Void.class, DefaultOutlineRenderer::new));
        }
 
        // per-instance members
 
        private final Map<String, String> standardSnippetIDClassNames = new HashMap<>();
-       private final Map<String, SnippetSupplier<?, S>> snippetProvidersForClassNames = new HashMap<>();
-       private final SnippetSupplier<?, S> defaultSnippetProvider;
+       private final Map<String, SnippetSupplier<?, S>> snippetSuppliersForClassNames = new HashMap<>();
+       private final SnippetSupplier<?, S> defaultSnippetSupplier;
 
-       private CodeSnippetSupplier(SnippetSupplier<?, S> defaultSnippetProvider)
+       private CodeSnippetSupplier(SnippetSupplier<?, S> defaultSnippetSupplier)
        {
-               this.defaultSnippetProvider = defaultSnippetProvider;
+               this.defaultSnippetSupplier = defaultSnippetSupplier;
        }
 
        public void addStandardSnippetID(String standardSnippetID, String associatedSnippetClassName)
@@ -39,31 +39,31 @@ public class CodeSnippetSupplier<S>
                standardSnippetIDClassNames.put(standardSnippetID, associatedSnippetClassName);
        }
 
-       public void setSnippetProvider(String id, SnippetSupplier<?, S> snippetProvider)
+       public void setSnippetSupplier(String id, SnippetSupplier<?, S> snippetSupplier)
        {
-               snippetProvidersForClassNames.put(id, snippetProvider);
+               snippetSuppliersForClassNames.put(id, snippetSupplier);
        }
 
        // TODO report errors
-       public SnippetSupplier<?, S> getSnippetProvider(String id)
+       public SnippetSupplier<?, S> getSnippetSupplier(String id)
        {
                if (id != null)
                {
-                       String snippetProviderClassName;
+                       String snippetClassName;
                        if (id.startsWith("class:"))
-                               snippetProviderClassName = id.substring(6);
+                               snippetClassName = id.substring(6);
                        else
-                               snippetProviderClassName = standardSnippetIDClassNames.get(id);
-                       if (snippetProviderClassName != null)
+                               snippetClassName = standardSnippetIDClassNames.get(id);
+                       if (snippetClassName != null)
                        {
-                               tryLoadSnippetClass(snippetProviderClassName);
-                               SnippetSupplier<?, S> snippetProvider = snippetProvidersForClassNames.get(snippetProviderClassName);
-                               if (snippetProvider != null)
-                                       return snippetProvider;
+                               tryLoadSnippetClass(snippetClassName);
+                               SnippetSupplier<?, S> snippetSupplier = snippetSuppliersForClassNames.get(snippetClassName);
+                               if (snippetSupplier != null)
+                                       return snippetSupplier;
                        }
                        System.err.println("Couldn't load snippet " + id + "; using default");
                }
-               return defaultSnippetProvider;
+               return defaultSnippetSupplier;
        }
 
        // static helpers
@@ -75,8 +75,8 @@ public class CodeSnippetSupplier<S>
                        if (s == null)
                                throw new IOException("Resource not found");
                        SnippetIDClassNames tmp = JsonHandler.readJson(s, SnippetIDClassNames.class);
-                       tmp.standardOutlineRendererProviders.forEach(outlineRendererProviderSupplier::addStandardSnippetID);
-                       tmp.standardSymbolRendererProviders.forEach(symbolRendererProviderSupplier::addStandardSnippetID);
+                       tmp.standardOutlineRendererSuppliers.forEach(outlineRendererSupplier::addStandardSnippetID);
+                       tmp.standardSymbolRendererSuppliers.forEach(symbolRendererSupplier::addStandardSnippetID);
                }
                catch (Exception e)
                {
@@ -87,8 +87,8 @@ public class CodeSnippetSupplier<S>
 
        private static class SnippetIDClassNames
        {
-               public Map<String, String> standardOutlineRendererProviders;
-               public Map<String, String> standardSymbolRendererProviders;
+               public Map<String, String> standardOutlineRendererSuppliers;
+               public Map<String, String> standardSymbolRendererSuppliers;
        }
 
        private static void tryLoadSnippetClass(String snippetClassName)
index 456d19c..0e89af7 100644 (file)
@@ -16,7 +16,7 @@ public class IndirectGUIComponentCreator
 {
        private static final Map<String, String> standardComponentIDs = new HashMap<>();
 
-       private static final Map<String, ComponentProvider> componentProviders = new HashMap<>();
+       private static final Map<String, ComponentSupplier> componentSuppliers = new HashMap<>();
 
        static
        {
@@ -51,9 +51,9 @@ public class IndirectGUIComponentCreator
                standardComponentIDs.put(standardComponentID, associatedComponentID);
        }
 
-       public static void setComponentProvider(String className, ComponentProvider componentProvider)
+       public static void setComponentSupplier(String className, ComponentSupplier componentSupplier)
        {
-               componentProviders.put(className, componentProvider);
+               componentSuppliers.put(className, componentSupplier);
        }
 
        public static GUIComponent createComponent(ViewModelModifiable model, String id)
@@ -74,15 +74,15 @@ public class IndirectGUIComponentCreator
                        {
                                String className = resolvedID.substring(6);
                                tryLoadComponentClass(className);
-                               ComponentProvider componentProvider = componentProviders.get(className);
-                               if (componentProvider != null)
-                                       return componentProvider.create(model, params);
+                               ComponentSupplier componentSupplier = componentSuppliers.get(className);
+                               if (componentSupplier != null)
+                                       return componentSupplier.create(model, params);
                        } else
                                // we know id has to start with "file:" here
                                // because standardComponentIDs only contains strings starting with "class:" or "file:"
                                return SubmodelComponentDeserializer.create(model, resolvedID.substring(5));
                }
-               throw new RuntimeException("Could not get component provider for ID " + id);
+               throw new RuntimeException("Could not get component supplier for ID " + id);
        }
 
        private static void tryLoadComponentClass(String componentClassName)
@@ -90,7 +90,7 @@ public class IndirectGUIComponentCreator
                CodeSnippetSupplier.tryInvokeStaticInitializer(componentClassName, "Error loading component class %s: %s\n");
        }
 
-       public static interface ComponentProvider
+       public static interface ComponentSupplier
        {
                public GUIComponent create(ViewModelModifiable model, JsonElement params);
        }
index 20961a7..53d7205 100644 (file)
@@ -61,10 +61,10 @@ public final class SubmodelComponentDeserializer
        {
                DeserializedSubmodelComponent comp = new DeserializedSubmodelComponent(model);
                comp.setSubmodelScale(params.submodel.innerScale);
-               comp.setOutlineRenderer(CodeSnippetSupplier.outlineRendererProviderSupplier.getSnippetProvider(params.outlineRendererSnippetID)
-                               .create(comp, params.outlineRendererParams));
-               comp.setSymbolRenderer(CodeSnippetSupplier.symbolRendererProviderSupplier.getSnippetProvider(params.symbolRendererSnippetID)
-                               .create(comp, params.symbolRendererParams));
+               comp.setOutlineRenderer(CodeSnippetSupplier.outlineRendererSupplier.getSnippetSupplier(params.outlineRendererSnippetID).create(comp,
+                               params.outlineRendererParams));
+               comp.setSymbolRenderer(CodeSnippetSupplier.symbolRendererSupplier.getSnippetSupplier(params.symbolRendererSnippetID).create(comp,
+                               params.symbolRendererParams));
                // TODO high level states
                comp.setSize(params.width, params.height);
                for (InterfacePinParams iPinParams : params.interfacePins)
index 8fe41c6..ea3c64f 100644 (file)
@@ -31,7 +31,7 @@ public class DefaultOutlineRenderer implements Renderer
 
        static
        {
-               CodeSnippetSupplier.outlineRendererProviderSupplier.setSnippetProvider(DefaultOutlineRenderer.class.getCanonicalName(),
+               CodeSnippetSupplier.outlineRendererSupplier.setSnippetSupplier(DefaultOutlineRenderer.class.getCanonicalName(),
                                SnippetSupplier.create(Void.class, DefaultOutlineRenderer::new));
        }
 }
\ No newline at end of file
index 2309f14..6ef4a41 100644 (file)
@@ -52,7 +52,7 @@ public class CenteredTextSymbolRenderer implements Renderer
 
        static
        {
-               CodeSnippetSupplier.symbolRendererProviderSupplier.setSnippetProvider(CenteredTextSymbolRenderer.class.getCanonicalName(),
+               CodeSnippetSupplier.symbolRendererSupplier.setSnippetSupplier(CenteredTextSymbolRenderer.class.getCanonicalName(),
                                SnippetSupplier.create(CenteredTextParams.class, CenteredTextSymbolRenderer::new));
        }
 }
\ No newline at end of file
index 4600531..21b955a 100644 (file)
@@ -36,7 +36,7 @@ public class DefaultSymbolRenderer implements Renderer
 
        static
        {
-               CodeSnippetSupplier.symbolRendererProviderSupplier.setSnippetProvider(DefaultSymbolRenderer.class.getCanonicalName(),
+               CodeSnippetSupplier.symbolRendererSupplier.setSnippetSupplier(DefaultSymbolRenderer.class.getCanonicalName(),
                                SnippetSupplier.create(Void.class, DefaultSymbolRenderer::new));
        }
 }
\ No newline at end of file
index 515c9c4..41ba61d 100644 (file)
@@ -76,7 +76,7 @@ public class SimpleRectangularLikeSymbolRenderer implements Renderer
 
        static
        {
-               CodeSnippetSupplier.symbolRendererProviderSupplier.setSnippetProvider(SimpleRectangularLikeSymbolRenderer.class.getCanonicalName(),
+               CodeSnippetSupplier.symbolRendererSupplier.setSnippetSupplier(SimpleRectangularLikeSymbolRenderer.class.getCanonicalName(),
                                SnippetSupplier.create(SimpleRectangularLikeParams.class, SimpleRectangularLikeSymbolRenderer::new));
        }
 }
\ No newline at end of file
index 7cdc9f3..d55de89 100644 (file)
@@ -1,7 +1,7 @@
 mograsim version: 0.1.3
 {
-  "standardOutlineRendererProviders": {},
-  "standardSymbolRendererProviders": {
+  "standardOutlineRendererSuppliers": {},
+  "standardSymbolRendererSuppliers": {
     "CenteredTextSymbolRenderer": "net.mograsim.logic.ui.serializing.snippets.symbolrenderers.CenteredTextSymbolRenderer",
     "SimpleRectangularLikeSymbolRenderer": "net.mograsim.logic.ui.serializing.snippets.symbolrenderers.SimpleRectangularLikeSymbolRenderer"
   }