Search in sources :

Example 1 with AssignmentOperator

use of org.yakindu.base.expressions.expressions.AssignmentOperator in project statecharts by Yakindu.

the class AssignmentExpressionImpl method setOperator.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setOperator(AssignmentOperator newOperator) {
    AssignmentOperator oldOperator = operator;
    operator = newOperator == null ? OPERATOR_EDEFAULT : newOperator;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, ExpressionsPackage.ASSIGNMENT_EXPRESSION__OPERATOR, oldOperator, operator));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) AssignmentOperator(org.yakindu.base.expressions.expressions.AssignmentOperator)

Example 2 with AssignmentOperator

use of org.yakindu.base.expressions.expressions.AssignmentOperator 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;
}
Also used : AssignmentExpression(org.yakindu.base.expressions.expressions.AssignmentExpression) AssignmentOperator(org.yakindu.base.expressions.expressions.AssignmentOperator)

Aggregations

AssignmentOperator (org.yakindu.base.expressions.expressions.AssignmentOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 AssignmentExpression (org.yakindu.base.expressions.expressions.AssignmentExpression)1