X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FTransferableGraphUtils.java;fp=bundles%2Forg.simantics.graph%2Fsrc%2Forg%2Fsimantics%2Fgraph%2Frepresentation%2FTransferableGraphUtils.java;h=b210d8dd713348cb38fa846f6558509442d05276;hb=e623710df8c9c090b01df901d3e807c6d26cfbf7;hp=5b40113aecb1fb581e57ec80d1f1786c63df3caa;hpb=aea3e7b117a8398471f10c31844efffc8026f815;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraphUtils.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraphUtils.java index 5b40113ae..b210d8dd7 100644 --- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraphUtils.java +++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/TransferableGraphUtils.java @@ -146,22 +146,53 @@ public class TransferableGraphUtils { return result; } + /** + * This implementation is no longer advised to use because it returns 0 as + * NOT_FOUND which is in fact a valid ID for resource in graph + */ + @Deprecated public static int getPossibleObject(TransferableGraph1 tg, int subject, Identity predicate) { int result = 0; for(int i=0;i getNames(TransferableGraph1 tg, Collection ids) { Map result = new HashMap();