From: Reino Ruusu Date: Fri, 9 Oct 2020 06:03:14 +0000 (+0300) Subject: Limit tech type code enumeration to enabled items X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=484707a4336644e28c35e0558bd157ca3b74366f;p=simantics%2Fdistrict.git Limit tech type code enumeration to enabled items gitlab #101 Change-Id: Ie749bf5f7a32cabd71535b36012867d2aa04bf58 --- diff --git a/org.simantics.district.network/src/org/simantics/district/network/techtype/variable/Functions.java b/org.simantics.district.network/src/org/simantics/district/network/techtype/variable/Functions.java index a6a3ed2d..d23a9a00 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/techtype/variable/Functions.java +++ b/org.simantics.district.network/src/org/simantics/district/network/techtype/variable/Functions.java @@ -85,7 +85,7 @@ public class Functions { if (table == null) return Collections.emptyList(); - Map> data = graph.syncRequest(new TechTypeTableData(table), TransientCacheListener.instance()); + Map> data = graph.syncRequest(new TechTypeTableData(table, true), TransientCacheListener.instance()); ArrayList result = new ArrayList(data.keySet()); // Sort so that all numbers are in growing order