Search in sources :

Example 1 with GAndOperator

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

the class GAndExpressionItemProvider method getText.

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

Example 2 with GAndOperator

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

the class GAndExpressionImpl method setOperator.

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

Aggregations

GAndOperator (org.eclipse.gemoc.gexpressions.GAndOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GAndExpression (org.eclipse.gemoc.gexpressions.GAndExpression)1