Search in sources :

Example 1 with GAdditionOperator

use of org.eclipse.gemoc.gexpressions.GAdditionOperator in project gemoc-studio by eclipse.

the class GAdditionExpressionItemProvider method getText.

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

Example 2 with GAdditionOperator

use of org.eclipse.gemoc.gexpressions.GAdditionOperator in project gemoc-studio by eclipse.

the class GAdditionExpressionImpl method setOperator.

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

Aggregations

GAdditionOperator (org.eclipse.gemoc.gexpressions.GAdditionOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GAdditionExpression (org.eclipse.gemoc.gexpressions.GAdditionExpression)1