1 package org.simantics.sysdyn.ui.properties.widgets.expressions;
\r
3 import org.eclipse.swt.widgets.Composite;
\r
4 import org.simantics.sysdyn.ui.properties.widgets.ExpressionWidget;
\r
7 * A composite class for access to save equation in expressionWidget.
\r
8 * @author Tuomas Miettinen
\r
11 public class ExpressionComposite extends Composite {
\r
13 private ExpressionWidget expressionWidget;
\r
15 public ExpressionComposite(Composite parent, int style) {
\r
16 super(parent, style);
\r
20 public void saveExpression() {
\r
21 expressionWidget.save();
\r
24 public void setExpressionWidget(ExpressionWidget expressionWidget) {
\r
25 this.expressionWidget = expressionWidget;
\r