Search in sources :

Example 21 with Constraint

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

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

Aggregations

Constraint (org.obeonetwork.dsl.database.Constraint)21 Table (org.obeonetwork.dsl.database.Table)5 ArrayList (java.util.ArrayList)4 EObject (org.eclipse.emf.ecore.EObject)4 Column (org.obeonetwork.dsl.database.Column)4 AbstractTable (org.obeonetwork.dsl.database.AbstractTable)3 UpdateConstraint (org.obeonetwork.dsl.database.dbevolution.UpdateConstraint)3 PreparedStatement (java.sql.PreparedStatement)2 ResultSet (java.sql.ResultSet)2 SQLException (java.sql.SQLException)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 Index (org.obeonetwork.dsl.database.Index)2 AddConstraint (org.obeonetwork.dsl.database.dbevolution.AddConstraint)2 RemoveConstraint (org.obeonetwork.dsl.database.dbevolution.RemoveConstraint)2 Entity (org.obeonetwork.dsl.entity.Entity)2 Collection (java.util.Collection)1 EObjectPropertiesEditionContext (org.eclipse.emf.eef.runtime.context.impl.EObjectPropertiesEditionContext)1 EReferencePropertiesEditionContext (org.eclipse.emf.eef.runtime.context.impl.EReferencePropertiesEditionContext)1 PropertiesEditingPolicy (org.eclipse.emf.eef.runtime.policies.PropertiesEditingPolicy)1 CreateEditingPolicy (org.eclipse.emf.eef.runtime.policies.impl.CreateEditingPolicy)1