Search in sources :

Example 1 with GMultiplicationOperator

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

the class GMultiplicationExpressionImpl method setOperator.

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

Example 2 with GMultiplicationOperator

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

the class GMultiplicationExpressionItemProvider method getText.

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

Aggregations

GMultiplicationOperator (org.eclipse.gemoc.gexpressions.GMultiplicationOperator)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 GMultiplicationExpression (org.eclipse.gemoc.gexpressions.GMultiplicationExpression)1