From: Tuukka Lehtonen Date: Tue, 4 Sep 2018 09:16:51 +0000 (+0300) Subject: Avoid duplicate validity checks when injecting layer listener X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e1b15332f361872748ec925036add97fd243fd1c;p=simantics%2Fdistrict.git Avoid duplicate validity checks when injecting layer listener gitlab #8 Change-Id: I86f31fc6a640c69be5dc9cce7784ba8903abbad6 --- diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java index fe3ed935..171d31e6 100644 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java +++ b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/adapters/DistrictDiagramClassAdapter.java @@ -82,7 +82,7 @@ public class DistrictDiagramClassAdapter extends DiagramClassAdapter { @Override public ElementClass substitute(IDiagram d, ElementClass ec) { - return ec.newClassWith(LAYER_LISTENER); + return ec.newClassWith(false, LAYER_LISTENER); } }