Search in sources :

Example 1 with GOrOperator

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

the class GOrExpressionItemProvider method getText.

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

Example 2 with GOrOperator

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

the class GOrExpressionImpl method setOperator.

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

Aggregations

GOrOperator (org.eclipse.gemoc.gexpressions.GOrOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GOrExpression (org.eclipse.gemoc.gexpressions.GOrExpression)1