X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FGUIComponent.java;h=2c8324af5659bd3e5e12eb165564199b945bb681;hb=b37ba7609a925cc945bbac0f6ead619d07912238;hp=a586616ee49244c7143904bbb1a9a6a042215e80;hpb=6326657a3c18b83ad59a08ffe9d600149fdb4e88;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java index a586616e..2c8324af 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java @@ -12,6 +12,7 @@ import java.util.function.Supplier; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; import net.mograsim.logic.ui.model.ViewModelModifiable; +import net.mograsim.logic.ui.model.Visitable; import net.mograsim.logic.ui.model.wires.Pin; /** @@ -20,7 +21,7 @@ import net.mograsim.logic.ui.model.wires.Pin; * * @author Daniel Kirschten */ -public abstract class GUIComponent +public abstract class GUIComponent implements Visitable { /** * The model this component is a part of. @@ -43,7 +44,7 @@ public abstract class GUIComponent private final Runnable redrawListenerForSubcomponents; // Defines how the GUIComponent is referenced in SubmodelComponentParams - protected Supplier identifierDelegate = () -> "class:".concat(getClass().getCanonicalName()); + protected Supplier identifierDelegate = () -> getClass().getSimpleName(); // creation and destruction