Search in sources :

Example 1 with AddConstraint

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();
}
Also used : Constraint(org.obeonetwork.dsl.database.Constraint) AddConstraint(org.obeonetwork.dsl.database.dbevolution.AddConstraint) AddConstraint(org.obeonetwork.dsl.database.dbevolution.AddConstraint)

Example 2 with AddConstraint

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;
}
Also used : AddConstraint(org.obeonetwork.dsl.database.dbevolution.AddConstraint)

Aggregations

AddConstraint (org.obeonetwork.dsl.database.dbevolution.AddConstraint)2 Constraint (org.obeonetwork.dsl.database.Constraint)1