From: lehtonen Date: Mon, 12 May 2014 07:11:24 +0000 (+0000) Subject: Renamed WriteGraph.startUndoContext to WriteGraph.markUndoPoint. X-Git-Tag: 1.8.1~63 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=558eb40f01de099afc4d3a0fe20dced161b4670c;p=simantics%2Fsysdyn.git Renamed WriteGraph.startUndoContext to WriteGraph.markUndoPoint. refs #4849 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29445 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/BasicExpression.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/BasicExpression.java index 742a4f3d..12ad3c80 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/BasicExpression.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/BasicExpression.java @@ -159,7 +159,7 @@ public class BasicExpression implements IExpression { expressionType = sr.NormalExpression; } - g.startUndoContext(); + g.markUndoPoint(); CommentMetadata cm = g.getMetadata(CommentMetadata.class); g.addMetadata(cm.add("Set equation")); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/DelayExpression.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/DelayExpression.java index 258ee484..e6b19626 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/DelayExpression.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/DelayExpression.java @@ -330,7 +330,7 @@ public class DelayExpression implements IExpression { else g.deny(expression, sr.DelayExpression_isInformationDelay, expression); - g.startUndoContext(); + g.markUndoPoint(); CommentMetadata cm = g.getMetadata(CommentMetadata.class); g.addMetadata(cm.add("Set delay expression")); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/ParameterExpression.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/ParameterExpression.java index 274ea5a2..5b2a3e75 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/ParameterExpression.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/ParameterExpression.java @@ -137,7 +137,7 @@ public class ParameterExpression extends BasicExpression { return false; valuesVariable.setValue(graph, new double[] {Double.parseDouble(currentText)}); - graph.startUndoContext(); + graph.markUndoPoint(); CommentMetadata cm = graph.getMetadata(CommentMetadata.class); graph.addMetadata(cm.add("Set parameter")); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/StockExpression.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/StockExpression.java index e8c51d20..d92c9a1a 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/StockExpression.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/StockExpression.java @@ -104,7 +104,7 @@ public class StockExpression implements IExpression { throws DatabaseException { // Delete the possible integral expression from the database to note // that we are in the "default" mode. - graph.startUndoContext(); + graph.markUndoPoint(); SysdynResource sr = SysdynResource.getInstance(graph); graph.deny(input.expression, sr.StockExpression_useCustomIntegral); graph.claimLiteral(input.expression, sr.StockExpression_integralEquation, getDefaultIntegral(graph, input.expression)); @@ -182,7 +182,7 @@ public class StockExpression implements IExpression { public void perform(WriteGraph graph) throws DatabaseException { SysdynResource sr = SysdynResource.getInstance(graph); graph.claimLiteral(input.expression, sr.StockExpression_integralEquation, getDefaultIntegral(graph, input.expression)); - graph.startUndoContext(); + graph.markUndoPoint(); CommentMetadata cm = graph.getMetadata(CommentMetadata.class); graph.addMetadata(cm.add("Set expression")); } @@ -275,7 +275,7 @@ public class StockExpression implements IExpression { } g.claimLiteral(expression, sr.StockExpression_integralEquation, currentIntegral); - g.startUndoContext(); + g.markUndoPoint(); CommentMetadata cm = g.getMetadata(CommentMetadata.class); g.addMetadata(cm.add("Save")); diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/WithLookupExpression.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/WithLookupExpression.java index cdb346fa..66132ab9 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/WithLookupExpression.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/WithLookupExpression.java @@ -314,7 +314,7 @@ public class WithLookupExpression implements IExpression { g.claimLiteral(expr, sr.WithLookupExpression_expression, currentExpression); g.claimLiteral(expr, sr.WithLookupExpression_lookup, currentLookupTable); - g.startUndoContext(); + g.markUndoPoint(); CommentMetadata cm = g.getMetadata(CommentMetadata.class); g.addMetadata(cm.add("Set lookup expression"));