From: Marko Luukkainen Date: Wed, 18 Dec 2019 10:34:09 +0000 (+0200) Subject: Expose TransferableGraphImportProcess Resources table. X-Git-Tag: v1.43.0~136^2~4 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=32a17a670cf4f9d459917495be5f4a504afac205;hp=50dee4ff8fd82c2e6ad78246b5b1f6880865a3e8 Expose TransferableGraphImportProcess Resources table. This allows us to process the Resources with ImportAdvisor.beforeWrite() gitlab #433 Change-Id: I4537549167e4816bb888b5891aea7e98d84b9184 (cherry picked from commit 680b5fe108fc6929d40785c76ec7444bbb092f51) --- diff --git a/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImportProcess.java b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImportProcess.java index 3b3c78bac..6a699d81b 100644 --- a/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImportProcess.java +++ b/bundles/org.simantics.graph.db/src/org/simantics/graph/db/TransferableGraphImportProcess.java @@ -174,6 +174,10 @@ public class TransferableGraphImportProcess implements TransferableGraphImporter missingExternals.add(external); } + public Resource[] getResources() { + return resources; + } + public void prepare(ReadGraph graph) throws DatabaseException { findBuiltins(graph);