Search in sources :

Example 1 with MultiplicativeOperator

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

the class NumericalMultiplyDivideExpressionImpl method setOperator.

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

Example 2 with MultiplicativeOperator

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

the class NumericalMultiplyDivideExpressionItemProvider method getText.

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

Aggregations

MultiplicativeOperator (org.yakindu.base.expressions.expressions.MultiplicativeOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 NumericalMultiplyDivideExpression (org.yakindu.base.expressions.expressions.NumericalMultiplyDivideExpression)1