X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.district.network.ui%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fui%2Ftechtype%2Frequests%2FPossibleTechTypeTableData.java;fp=org.simantics.district.network.ui%2Fsrc%2Forg%2Fsimantics%2Fdistrict%2Fnetwork%2Fui%2Ftechtype%2Frequests%2FPossibleTechTypeTableData.java;h=0000000000000000000000000000000000000000;hb=44fb5c76f6e8a4d4669de3bbbf48850a3d724049;hp=b47bbc70c65f1a731ba1efb88b8c568b99e9c90a;hpb=20e401b6e5ac78b8a586468ea1b3e8bfa818c017;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/requests/PossibleTechTypeTableData.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/requests/PossibleTechTypeTableData.java deleted file mode 100644 index b47bbc70..00000000 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/techtype/requests/PossibleTechTypeTableData.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.simantics.district.network.ui.techtype.requests; - -import org.simantics.databoard.Bindings; -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.common.procedure.adapter.TransientCacheListener; -import org.simantics.db.common.request.ResourceRead2; -import org.simantics.db.exception.DatabaseException; -import org.simantics.district.network.ontology.DistrictNetworkResource; - -public class PossibleTechTypeTableData extends ResourceRead2 { - public PossibleTechTypeTableData(Resource model, Resource componentType) { - super(model, componentType); - } - - @Override - public String perform(ReadGraph graph) throws DatabaseException { - DistrictNetworkResource DN = DistrictNetworkResource.getInstance(graph); - - Resource ttt = graph.syncRequest(new PossibleTechTypeTable(resource, resource2), TransientCacheListener.instance()); - return ttt != null ? graph.getPossibleRelatedValue2(ttt, DN.TechType_TechTypeTable_HasData, Bindings.STRING) : null; - } -}