Made finding the ID of a JsonSerializable less ugly
[Mograsim.git] / net.mograsim.logic.model / src / net / mograsim / logic / model / model / components / atomic / GUIClock.java
index a3ff96c..ffc1115 100644 (file)
@@ -18,7 +18,7 @@ import net.mograsim.logic.model.model.wires.Pin;
 import net.mograsim.logic.model.model.wires.PinUsage;
 import net.mograsim.logic.model.modeladapter.ViewLogicModelAdapter;
 import net.mograsim.logic.model.modeladapter.componentadapters.ClockAdapter;
-import net.mograsim.logic.model.serializing.IdentifierGetter;
+import net.mograsim.logic.model.serializing.IdentifyParams;
 import net.mograsim.logic.model.serializing.IndirectGUIComponentCreator;
 import net.mograsim.logic.model.util.JsonHandler;
 import net.mograsim.preferences.Preferences;
@@ -129,7 +129,13 @@ public class GUIClock extends GUIComponent
        }
 
        @Override
-       public GUIClockParams getParamsForSerializing(IdentifierGetter idGetter)
+       public String getIDForSerializing(IdentifyParams idParams)
+       {
+               return "GUIClock";
+       }
+
+       @Override
+       public GUIClockParams getParamsForSerializing(IdentifyParams idParams)
        {
                return params;
        }