@Override\r
public void remove(WriteGraph graph) throws DatabaseException {\r
\r
- String bookURI = graph.getURI(resource);\r
- for (String realmId : SpreadsheetSessionManager.getInstance().getRealms()) {\r
- if (realmId.startsWith(bookURI)) {\r
- SpreadsheetSessionManager.getInstance().removeRealm(realmId);\r
+ String bookURI = graph.getPossibleURI(resource);\r
+ if (bookURI != null) {\r
+ for (String realmId : SpreadsheetSessionManager.getInstance().getRealms()) {\r
+ if (realmId.startsWith(bookURI)) {\r
+ SpreadsheetSessionManager.getInstance().removeRealm(realmId);\r
+ }\r
}\r
}\r
super.remove(graph);\r
// Check hash of transferable graph to know whether to update or not.\r
if (platformBundle.getHashcode() == existingBundle.getHashcode())\r
continue;\r
- System.out.println("Ontology hashcodes do not match: platform bundle="\r
- + platformBundle.getVersionedId() + ", hash=" + platformBundle.getHashcode()\r
- + "; existing bundle=" + existingBundle.getVersionedId() + ", hash=" + existingBundle.getHashcode());\r
+ //System.out.println("Ontology hashcodes do not match: platform bundle="\r
+ // + platformBundle.getVersionedId() + ", hash=" + platformBundle.getHashcode()\r
+ // + "; existing bundle=" + existingBundle.getVersionedId() + ", hash=" + existingBundle.getHashcode());\r
reinstallTGs.put(platformBundle, existingBundle);\r
}\r
}\r
boolean changes = TransferableGraphs.hasChanges(readGraph(), oldResources, delta);\r
endTransaction();\r
if (!changes) {\r
- log.log(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Nothing to merge for "+tg.toString()));\r
+ //log.log(new Status(IStatus.INFO, Activator.PLUGIN_ID, "Nothing to merge for "+tg.toString()));\r
continue;\r
}\r
\r