]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Limit tech type code enumeration to enabled items 92/4492/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Fri, 9 Oct 2020 06:03:14 +0000 (09:03 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 9 Oct 2020 07:55:27 +0000 (07:55 +0000)
gitlab #101

Change-Id: Ie749bf5f7a32cabd71535b36012867d2aa04bf58
(cherry picked from commit 484707a4336644e28c35e0558bd157ca3b74366f)

org.simantics.district.network/src/org/simantics/district/network/techtype/variable/Functions.java

index a6a3ed2d91fad6d38c49b6fd280e3b9249b45b98..d23a9a00e82a44212688bf2612ca45064594b6dc 100644 (file)
@@ -85,7 +85,7 @@ public class Functions {
                if (table == null)
                        return Collections.<String>emptyList();
                
-               Map<String, Map<String, String>> data = graph.syncRequest(new TechTypeTableData(table), TransientCacheListener.instance());
+               Map<String, Map<String, String>> data = graph.syncRequest(new TechTypeTableData(table, true), TransientCacheListener.instance());
                ArrayList<String> result = new ArrayList<String>(data.keySet());
                
                // Sort so that all numbers are in growing order