Search in sources :

Example 1 with GEqualityOperator

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

the class GEqualityExpressionImpl method setOperator.

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

Example 2 with GEqualityOperator

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

the class GEqualityExpressionItemProvider method getText.

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

Aggregations

GEqualityOperator (org.eclipse.gemoc.gexpressions.GEqualityOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GEqualityExpression (org.eclipse.gemoc.gexpressions.GEqualityExpression)1