-
- for (Bundle b : Activator.getContext().getBundles()) {
- String id = b.getSymbolicName();
- String name = (String) b.getHeaders().get("Bundle-Name");
- if (name == null) name = id;
- if (name.equals(thisOntology.first))
- continue;
- URL tg = b.getEntry("/graph.tg");
- if (tg == null) continue;
- File f = url2file(FileLocator.resolve(tg), b.getSymbolicName());
- try {
- dependencies.add(GraphCompiler.read(f));
- } catch (Exception e) {
- throw new IOException("Failed to read compiled transferable graph as dependency: " + f, e);
+
+ Collection<GraphBundle> tgs = PlatformUtil.getAllGraphs();
+
+ for (GraphBundle b : tgs) {
+ TransferableGraph1 tg = b.getGraph();
+ Identity id = TransferableGraphUtils.getIdentity2(tg, thisOntology.first);
+ if(id == null) {
+ dependencies.add(tg);