Search in sources :

Example 1 with GNegationOperator

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

the class GNegationExpressionItemProvider method getText.

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

Example 2 with GNegationOperator

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

the class GNegationExpressionImpl method setOperator.

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

Aggregations

GNegationOperator (org.eclipse.gemoc.gexpressions.GNegationOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GNegationExpression (org.eclipse.gemoc.gexpressions.GNegationExpression)1