Search in sources :

Example 1 with NumericalUnaryExpression

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

the class NumericalUnaryExpressionItemProvider method getText.

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

Aggregations

NumericalUnaryExpression (org.yakindu.base.expressions.expressions.NumericalUnaryExpression)1 UnaryOperator (org.yakindu.base.expressions.expressions.UnaryOperator)1