Search in sources :

Example 26 with ForeignKey

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

the class ForeignKeyChangeItemProvider 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) {
    ForeignKeyChange foreignKeyChange = (ForeignKeyChange) object;
    ForeignKey foreignKey = foreignKeyChange.getForeignKey();
    return getString("_UI_ForeignKeyChange_type") + " " + foreignKey.getName();
}
Also used : ForeignKeyChange(org.obeonetwork.dsl.database.dbevolution.ForeignKeyChange) ForeignKey(org.obeonetwork.dsl.database.ForeignKey)

Example 27 with ForeignKey

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

the class AddForeignKeyItemProvider 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) {
    AddForeignKey addForeignKey = (AddForeignKey) object;
    ForeignKey foreignKey = addForeignKey.getForeignKey();
    return getString("_UI_AddForeignKey_type") + " " + foreignKey.getName();
}
Also used : AddForeignKey(org.obeonetwork.dsl.database.dbevolution.AddForeignKey) AddForeignKey(org.obeonetwork.dsl.database.dbevolution.AddForeignKey) ForeignKey(org.obeonetwork.dsl.database.ForeignKey)

Aggregations

ForeignKey (org.obeonetwork.dsl.database.ForeignKey)27 Table (org.obeonetwork.dsl.database.Table)16 EObject (org.eclipse.emf.ecore.EObject)8 AbstractTable (org.obeonetwork.dsl.database.AbstractTable)8 ForeignKeyElement (org.obeonetwork.dsl.database.ForeignKeyElement)8 Column (org.obeonetwork.dsl.database.Column)7 ArrayList (java.util.ArrayList)6 Reference (org.obeonetwork.dsl.environment.Reference)4 HashMap (java.util.HashMap)3 IStatus (org.eclipse.core.runtime.IStatus)3 Status (org.eclipse.core.runtime.Status)3 Viewer (org.eclipse.jface.viewers.Viewer)3 ViewerFilter (org.eclipse.jface.viewers.ViewerFilter)3 Constraint (org.obeonetwork.dsl.database.Constraint)3 Index (org.obeonetwork.dsl.database.Index)3 IndexElement (org.obeonetwork.dsl.database.IndexElement)3 Entity (org.obeonetwork.dsl.entity.Entity)3 Attribute (org.obeonetwork.dsl.environment.Attribute)3 HashSet (java.util.HashSet)2 LinkedHashMap (java.util.LinkedHashMap)2