]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Renamed WriteGraph.startUndoContext to WriteGraph.markUndoPoint.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 12 May 2014 07:11:24 +0000 (07:11 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 12 May 2014 07:11:24 +0000 (07:11 +0000)
refs #4849

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29445 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/BasicExpression.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/DelayExpression.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/ParameterExpression.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/StockExpression.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/WithLookupExpression.java

index 742a4f3d3504704537043bcb0bd4756456aacf6f..12ad3c80a5a20901cbb3bdf9c8d992de6941d0d9 100644 (file)
@@ -159,7 +159,7 @@ public class BasicExpression implements IExpression {
                        expressionType = sr.NormalExpression;\r
                     }\r
                     \r
-                    g.startUndoContext();\r
+                    g.markUndoPoint();\r
                                CommentMetadata cm = g.getMetadata(CommentMetadata.class);\r
                                g.addMetadata(cm.add("Set equation"));\r
 \r
index 258ee4849eba235d138fb1bf86edf5a29608a4b1..e6b1962641bb1f6efa6979dfd0359f66b435568a 100644 (file)
@@ -330,7 +330,7 @@ public class DelayExpression implements IExpression {
                     else\r
                        g.deny(expression, sr.DelayExpression_isInformationDelay, expression);\r
                     \r
-                    g.startUndoContext();\r
+                    g.markUndoPoint();\r
                                CommentMetadata cm = g.getMetadata(CommentMetadata.class);\r
                                g.addMetadata(cm.add("Set delay expression"));\r
                     \r
index 274ea5a2696460307469848551059fd4dc6f9260..5b2a3e755b06bdee6d47cc43e5d3ab957b5ad4fb 100644 (file)
@@ -137,7 +137,7 @@ public class ParameterExpression extends BasicExpression {
                                                        return false;\r
                                                    valuesVariable.setValue(graph, new double[] {Double.parseDouble(currentText)});\r
                                                    \r
-                                                   graph.startUndoContext();\r
+                                                   graph.markUndoPoint();\r
                                                                CommentMetadata cm = graph.getMetadata(CommentMetadata.class);\r
                                                                graph.addMetadata(cm.add("Set parameter"));\r
                                                    \r
index e8c51d205b7086511f731f3f6790af38ac915c58..d92c9a1a96ebb6fe7ae2ca8a6ecca3b74f6e9dfa 100644 (file)
@@ -104,7 +104,7 @@ public class StockExpression implements IExpression {
                                                        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
@@ -182,7 +182,7 @@ public class StockExpression implements IExpression {
                                        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
@@ -275,7 +275,7 @@ public class StockExpression implements IExpression {
                     }\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
index cdb346fa5d7b492a99599e528448dd17a58070f7..66132ab91a2088480ca0eb9d5ef86519d5d6fc76 100644 (file)
@@ -314,7 +314,7 @@ public class WithLookupExpression implements IExpression {
                     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