X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fmodel%2FViewModelModifiable.java;h=7ebde10ea6ea238c1e5374c175eec7d384e78172;hb=552986fd8718d5f2db00802015fdd1ecd58a5a2f;hp=d9dbdc4a1d6a8f73f05019b689458d18152df4bd;hpb=a47c9b1f38bbb6d2f5a3c482f3b09d1f42270401;p=Mograsim.git diff --git a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java index d9dbdc4a..7ebde10e 100644 --- a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java +++ b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/ViewModelModifiable.java @@ -2,16 +2,16 @@ package net.mograsim.logic.model.model; import java.util.Set; -import net.mograsim.logic.model.model.components.GUIComponent; -import net.mograsim.logic.model.model.wires.GUIWire; +import net.mograsim.logic.model.model.components.ModelComponent; +import net.mograsim.logic.model.model.wires.ModelWire; public class ViewModelModifiable extends ViewModel { - public String getDefaultComponentName(GUIComponent component) + public String getDefaultComponentName(ModelComponent component) { Set componentNames = getComponentsByName().keySet(); - // TODO get the ID of component^^ - // The following does not work because this code is called in the constructor of DeserializedSubmodelComponent at a time where + // TODO get the ID of component + // The following does not work because this method is called in the constructor of DeserializedSubmodelComponent at a time where // idForSerializingOverride is not yet set // String componentID = null; // if (component instanceof DeserializedSubmodelComponent) @@ -40,26 +40,26 @@ public class ViewModelModifiable extends ViewModel } @Override - public void componentCreated(GUIComponent component) + public void componentCreated(ModelComponent component, Runnable destroyed) { - super.componentCreated(component); + super.componentCreated(component, destroyed); } @Override - public void componentDestroyed(GUIComponent component) + public void destroyComponent(ModelComponent component) { - super.componentDestroyed(component); + super.destroyComponent(component); } @Override - public void wireCreated(GUIWire wire) + public void wireCreated(ModelWire wire, Runnable destroyed) { - super.wireCreated(wire); + super.wireCreated(wire, destroyed); } @Override - public void wireDestroyed(GUIWire wire) + public void destroyWire(ModelWire wire) { - super.wireDestroyed(wire); + super.destroyWire(wire); } } \ No newline at end of file