Search in sources :

Example 1 with ShiftExpression

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

the class ShiftExpressionItemProvider method getText.

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

Aggregations

ShiftExpression (org.yakindu.base.expressions.expressions.ShiftExpression)1 ShiftOperator (org.yakindu.base.expressions.expressions.ShiftOperator)1