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=9f18f45e7d0b3bc1ca80a15a9d4c8fe8354f49ec;p=simantics%2Fdistrict.git Avoid duplicate validity checks when injecting layer listener gitlab #8 Change-Id: I86f31fc6a640c69be5dc9cce7784ba8903abbad6 (cherry picked from commit e1b15332f361872748ec925036add97fd243fd1c) --- 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); } }