- System.err.println("GraphClientImpl2.cancelCommit() called!! this is experimental and might cause havoc!");
- try {
- undo(new long[] {changeSetId}, onChangeSetUpdate);
- } catch (SDBException e) {
- e.printStackTrace();
- throw new ProCoreException(e);
- }
- clusters.state.headChangeSetId++;
- return clusters.state.headChangeSetId;
+ safeToMakeSnapshot = false;
+ throw new UnsupportedOperationException("org.simantics.acorn.GraphClientImpl2.cancelCommit() is not supported operation! Closing down to prevent further havoc");
+// System.err.println("GraphClientImpl2.cancelCommit() called!! this is experimental and might cause havoc!");
+// try {
+// undo(new long[] {changeSetId}, onChangeSetUpdate);
+// } catch (SDBException e) {
+// e.printStackTrace();
+// throw new ProCoreException(e);
+// }
+// clusters.state.headChangeSetId++;
+// return clusters.state.headChangeSetId;