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));
}
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;
}
Aggregations