X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=LogicUI%2Fsrc%2Fera%2Fmi%2Fgui%2Fmodeladapter%2FViewLogicModelAdapter.java;h=1e7d341eceb4fcac2b0ebed234152e4af0a6cc7e;hb=bedef06cf9b3fdd815dd8cf8925aeb159381d59d;hp=3cb593fff4b91ffc5ab25cda65c78eca673bd67c;hpb=60ad0ce18eb366fa22e34cdd7dff87055e43c789;p=Mograsim.git diff --git a/LogicUI/src/era/mi/gui/modeladapter/ViewLogicModelAdapter.java b/LogicUI/src/era/mi/gui/modeladapter/ViewLogicModelAdapter.java index 3cb593ff..1e7d341e 100644 --- a/LogicUI/src/era/mi/gui/modeladapter/ViewLogicModelAdapter.java +++ b/LogicUI/src/era/mi/gui/modeladapter/ViewLogicModelAdapter.java @@ -58,10 +58,14 @@ public class ViewLogicModelAdapter Map oneToOneComponents = new HashMap<>(); for (GUIComponent guiComp : viewModel.getComponents()) { - // WireCrossPoints just vanish if (!(guiComp instanceof WireCrossPoint)) oneToOneComponents.put(guiComp, createAndLinkComponent(timeline, params, guiComp, logicWiresPerPinUnmodifiable, componentAdapters.get(guiComp.getClass()))); + else + { + WireCrossPoint guiCompCasted = (WireCrossPoint) guiComp; + guiCompCasted.setLogicModelBinding(logicWiresPerPin.get(guiCompCasted.getPin()).createReadOnlyEnd()); + } } // TODO handle complex components