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;
}
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));
}
Aggregations