Search in sources :

Example 1 with RelationalOperator

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

the class LogicalRelationExpressionImpl method setOperator.

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

Example 2 with RelationalOperator

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

the class LogicalRelationExpressionItemProvider method getText.

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

Aggregations

RelationalOperator (org.yakindu.base.expressions.expressions.RelationalOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 LogicalRelationExpression (org.yakindu.base.expressions.expressions.LogicalRelationExpression)1