use of org.obeonetwork.dsl.database.dbevolution.AddConstraint in project InformationSystem by ObeoNetwork.
the class AddConstraintItemProvider method getText.
/**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
@Override
public String getText(Object object) {
AddConstraint addConstraint = (AddConstraint) object;
Constraint constraint = addConstraint.getConstraint();
return getString("_UI_AddConstraint_type") + " " + constraint.getName();
}
use of org.obeonetwork.dsl.database.dbevolution.AddConstraint in project InformationSystem by ObeoNetwork.
the class ConstraintChangeBuilder method createAddConstraint.
protected AddConstraint createAddConstraint(Table table, Constraint constraint, ReferenceChange change) {
AddConstraint addConstraint = DbevolutionFactory.eINSTANCE.createAddConstraint();
addConstraint.setConstraint(constraint);
fillDBDiff(addConstraint, change);
return addConstraint;
}
Aggregations