use of org.yakindu.base.expressions.expressions.AssignmentExpression in project statecharts by Yakindu.
the class StextTestFactory method _createVariableAssignment.
public static AssignmentExpression _createVariableAssignment(VariableDefinition v, AssignmentOperator op, Expression expression, ReactionEffect e) {
AssignmentExpression assignment = ExpressionsFactory.eINSTANCE.createAssignmentExpression();
assignment.setVarRef(_createElementReferenceExpression(v));
assignment.setOperator(op);
assignment.setExpression(expression);
if (e != null)
e.getActions().add(assignment);
return assignment;
}
use of org.yakindu.base.expressions.expressions.AssignmentExpression in project statecharts by Yakindu.
the class AssignmentExpressionItemProvider method getText.
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public String getText(Object object) {
AssignmentOperator labelValue = ((AssignmentExpression) object).getOperator();
String label = labelValue == null ? null : labelValue.toString();
return label == null || label.length() == 0 ? getString("_UI_AssignmentExpression_type") : getString("_UI_AssignmentExpression_type") + " " + label;
}
Aggregations