throws DatabaseException {\r
// Delete the possible integral expression from the database to note \r
// that we are in the "default" mode.\r
- graph.startUndoContext();\r
+ graph.markUndoPoint();\r
SysdynResource sr = SysdynResource.getInstance(graph);\r
graph.deny(input.expression, sr.StockExpression_useCustomIntegral);\r
graph.claimLiteral(input.expression, sr.StockExpression_integralEquation, getDefaultIntegral(graph, input.expression));\r
public void perform(WriteGraph graph) throws DatabaseException {\r
SysdynResource sr = SysdynResource.getInstance(graph);\r
graph.claimLiteral(input.expression, sr.StockExpression_integralEquation, getDefaultIntegral(graph, input.expression));\r
- graph.startUndoContext();\r
+ graph.markUndoPoint();\r
CommentMetadata cm = graph.getMetadata(CommentMetadata.class);\r
graph.addMetadata(cm.add("Set expression"));\r
}\r
}\r
g.claimLiteral(expression, sr.StockExpression_integralEquation, currentIntegral);\r
\r
- g.startUndoContext();\r
+ g.markUndoPoint();\r
CommentMetadata cm = g.getMetadata(CommentMetadata.class);\r
g.addMetadata(cm.add("Save"));\r
\r
g.claimLiteral(expr, sr.WithLookupExpression_expression, currentExpression);\r
g.claimLiteral(expr, sr.WithLookupExpression_lookup, currentLookupTable);\r
\r
- g.startUndoContext();\r
+ g.markUndoPoint();\r
CommentMetadata cm = g.getMetadata(CommentMetadata.class);\r
g.addMetadata(cm.add("Set lookup expression"));\r
\r