public void save(final Resource expression, Map<String, Object> data) {\r
final String currentText = this.expression.getExpression();\r
final String oldEquation = (String)data.get("equation");\r
+ \r
+ if(currentText != null && oldEquation != null && currentText.equals(oldEquation))\r
+ return; // Nothing is changed, no need to save\r
+ \r
if(oldEquation == null || \r
(currentText != null && expressionType != null)) {\r
data.put("equation", currentText);\r
final String currentText = this.expression.getExpression();\r
final String oldEquation = (String)data.get("equation");\r
if(oldEquation == null || \r
- (currentText != null && expressionType != null)) {\r
+ (currentText != null && oldEquation != null && !currentText.equals(oldEquation) && expressionType != null)) {\r
if(ExpressionUtils.isParameter(currentText)) {\r
Boolean savedIntoFMU = false;\r
\r