Search in sources :

Example 1 with PostFixOperator

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

the class PostFixUnaryExpressionItemProvider method getText.

/**
 * This returns the label text for the adapted class.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public String getText(Object object) {
    PostFixOperator labelValue = ((PostFixUnaryExpression) object).getOperator();
    String label = labelValue == null ? null : labelValue.toString();
    return label == null || label.length() == 0 ? getString("_UI_PostFixUnaryExpression_type") : getString("_UI_PostFixUnaryExpression_type") + " " + label;
}
Also used : PostFixUnaryExpression(org.yakindu.base.expressions.expressions.PostFixUnaryExpression) PostFixOperator(org.yakindu.base.expressions.expressions.PostFixOperator)

Example 2 with PostFixOperator

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

the class PostFixUnaryExpressionImpl method setOperator.

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

Aggregations

PostFixOperator (org.yakindu.base.expressions.expressions.PostFixOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 PostFixUnaryExpression (org.yakindu.base.expressions.expressions.PostFixUnaryExpression)1