@JavaName defaultSelections
setDefaultSelections :: ModelUpdate -> <Proc>()
+
+importJava "org.simantics.interop.update.model.UpdateOperations" where
+ data UpdateOperations
+
+ @JavaName getUpdateOp
+ getUpdateOpWithResource :: UpdateOperations -> Resource -> <Proc> Maybe UpdateOp
+
+ @JavaName getUpdateOp
+ getUpdateOpWithStatement :: UpdateOperations -> Statement -> <Proc> Maybe UpdateOp
importJava "org.simantics.interop.update.model.UpdateTree" where
data UpdateTree
@JavaName getNode
getNode :: UpdateTree -> Resource -> <Proc> Maybe UpdateNode
+ @JavaName getUpdateOps
+ getUpdateOps :: UpdateTree -> <Proc> UpdateOperations
+
importJava "org.simantics.interop.update.model.UpdateList" where
data UpdateList
@Override
public boolean accept(ReadGraph g, Modification change) throws DatabaseException {
//filter floating point values that have less than 1% difference.
+ if (change.getLeftStm() == null || change.getRightStm() == null)
+ return true;
if (!g.hasValue(change.getLeftStm().getObject()) || !g.hasValue(change.getRightStm().getObject()))
return true;
Object v1 = g.getValue(change.getLeftStm().getObject());
return new GraphChanges(r1,r2,changes1,changes2,modifications,comparableResources);
}
+ public List<Statement> getChanges1() {
+ return changes1;
+ }
+
+ public List<Statement> getChanges2() {
+ return changes2;
+ }
+
private void addComparable(Statement left, Statement right) throws DatabaseException {
addComparable(left.getObject(), right.getObject());
comparableStatements.map(left, right);