use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.
the class ExportImpl method basicSetLookupPredicate.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLookupPredicate(Expression newLookupPredicate, NotificationChain msgs) {
Expression oldLookupPredicate = lookupPredicate;
lookupPredicate = newLookupPredicate;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExportPackage.EXPORT__LOOKUP_PREDICATE, oldLookupPredicate, newLookupPredicate);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.
the class UserDataImpl method basicSetExpr.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExpr(Expression newExpr, NotificationChain msgs) {
Expression oldExpr = expr;
expr = newExpr;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExportPackage.USER_DATA__EXPR, oldExpr, newExpr);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.
the class ExportLabelProvider method text.
/**
* Return label text for an Export.
*
* @param context
* The Export.
* @return The label text.
*/
public String text(final Export context) {
if (context.getType() == null) {
return EXPORT_LABEL + UNKNOWN_TYPE_NAME;
}
Expression namingExpression = context.getNaming();
if (namingExpression == null) {
return EXPORT_LABEL + context.getType().getName();
}
String naming = serializer.serialize(context.getNaming());
if (naming.length() > MAXIMUM_LABEL_LENGTH) {
// $NON-NLS-1$
naming = naming.substring(0, MAXIMUM_LABEL_LENGTH) + "...";
}
// $NON-NLS-1$
return EXPORT_LABEL + context.getType().getName() + " as " + naming;
}
use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.
the class InterfaceExpressionImpl method basicSetExpr.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetExpr(Expression newExpr, NotificationChain msgs) {
Expression oldExpr = expr;
expr = newExpr;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExportPackage.INTERFACE_EXPRESSION__EXPR, oldExpr, newExpr);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.
the class BooleanOperationImpl method basicSetRight.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetRight(Expression newRight, NotificationChain msgs) {
Expression oldRight = right;
right = newRight;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.BOOLEAN_OPERATION__RIGHT, oldRight, newRight);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations