]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Limit tech type code enumeration to enabled items 26/4526/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Fri, 9 Oct 2020 06:03:14 +0000 (09:03 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Fri, 9 Oct 2020 06:13:13 +0000 (09:13 +0300)
gitlab #101

Change-Id: Ie749bf5f7a32cabd71535b36012867d2aa04bf58

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