Search in sources :

Example 1 with GXorOperator

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

the class GXorExpressionImpl method setOperator.

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

Example 2 with GXorOperator

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

the class GXorExpressionItemProvider method getText.

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

Aggregations

GXorOperator (org.eclipse.gemoc.gexpressions.GXorOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GXorExpression (org.eclipse.gemoc.gexpressions.GXorExpression)1