From 3549a497db61b91f01897c5092ff0d1e7f958071 Mon Sep 17 00:00:00 2001 From: lempinen Date: Fri, 27 Aug 2010 12:22:09 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17660 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/properties/widgets/ExpressionTypes.java | 4 ++-- .../sysdyn/ui/properties/widgets/ExpressionWidget.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionTypes.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionTypes.java index 3741a34e..8b73d0b3 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionTypes.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionTypes.java @@ -12,10 +12,10 @@ public class ExpressionTypes { public static enum ExpressionType {Auxiliary, Parameter, Constant, Lookup, WithLookup, Stock, Delay, Empty}; public static ExpressionType[] auxiliaryExpressions = new ExpressionType[] { - ExpressionType.Parameter, ExpressionType.Auxiliary, + ExpressionType.Parameter, ExpressionType.Constant, - ExpressionType.Lookup, + // ExpressionType.Lookup, ExpressionType.WithLookup}; public static ExpressionType[] valveExpressions = new ExpressionType[] { diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java index d569cd96..a3ad7704 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/ExpressionWidget.java @@ -66,6 +66,7 @@ public class ExpressionWidget implements Widget { ExpressionType et = ExpressionTypes.getExpressionTypeForVariable(variable); displayExpression(et.toString(), true); + } @@ -109,6 +110,8 @@ public class ExpressionWidget implements Widget { this.expression = exp; this.parent.layout(); validateFields(); + + save(); } } -- 2.47.1