Search in sources :

Example 1 with RemoveConstraint

use of org.obeonetwork.dsl.database.dbevolution.RemoveConstraint in project InformationSystem by ObeoNetwork.

the class RemoveConstraintItemProvider 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) {
    RemoveConstraint removeConstraint = (RemoveConstraint) object;
    Constraint constraint = removeConstraint.getConstraint();
    return getString("_UI_RemoveConstraint_type") + " " + constraint.getName();
}
Also used : Constraint(org.obeonetwork.dsl.database.Constraint) RemoveConstraint(org.obeonetwork.dsl.database.dbevolution.RemoveConstraint) RemoveConstraint(org.obeonetwork.dsl.database.dbevolution.RemoveConstraint)

Example 2 with RemoveConstraint

use of org.obeonetwork.dsl.database.dbevolution.RemoveConstraint in project InformationSystem by ObeoNetwork.

the class ConstraintChangeBuilder method createRemoveConstraint.

protected RemoveConstraint createRemoveConstraint(Table table, Constraint constraint, ReferenceChange change) {
    RemoveConstraint removeConstraint = DbevolutionFactory.eINSTANCE.createRemoveConstraint();
    removeConstraint.setConstraint(constraint);
    fillDBDiff(removeConstraint, change);
    return removeConstraint;
}
Also used : RemoveConstraint(org.obeonetwork.dsl.database.dbevolution.RemoveConstraint)

Aggregations

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