1 package org.simantics.sysdyn.ui.properties.widgets.expressions;
\r
4 import org.simantics.db.ReadGraph;
\r
5 import org.simantics.db.Resource;
\r
6 import org.simantics.db.exception.DatabaseException;
\r
7 import org.simantics.db.request.Read;
\r
8 import org.simantics.sysdyn.SysdynResource;
\r
9 import org.simantics.ui.SimanticsUI;
\r
11 public class ParameterExpression extends BasicExpression {
\r
14 public ParameterExpression() {
\r
16 this.expressionType = SimanticsUI.getSession().syncRequest(new Read<Resource>() {
\r
19 public Resource perform(ReadGraph graph) throws DatabaseException {
\r
20 return SysdynResource.getInstance(graph).ParameterExpression;
\r
23 } catch (DatabaseException e) {
\r
24 e.printStackTrace();
\r