Search in sources :

Example 6 with AdapterFactoryItemDelegator

use of org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator in project InformationSystem by ObeoNetwork.

the class AlterSchemaItemProvider 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) {
    AlterSchema alterSchema = (AlterSchema) object;
    Schema schema = alterSchema.getSchema();
    AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
    final String parentLabel = delegator.getText(schema);
    return getString("_UI_AlterSchema_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(alterSchema, alterSchema.getMatch().getComparison()).size() });
}
Also used : AlterSchema(org.obeonetwork.dsl.database.dbevolution.AlterSchema) AlterSchema(org.obeonetwork.dsl.database.dbevolution.AlterSchema) Schema(org.obeonetwork.dsl.database.Schema) AdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator) DiffContentService(org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)

Aggregations

AdapterFactoryItemDelegator (org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator)6 DiffContentService (org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)5 EObject (org.eclipse.emf.ecore.EObject)1 Column (org.obeonetwork.dsl.database.Column)1 Index (org.obeonetwork.dsl.database.Index)1 Schema (org.obeonetwork.dsl.database.Schema)1 Table (org.obeonetwork.dsl.database.Table)1 View (org.obeonetwork.dsl.database.View)1 AlterSchema (org.obeonetwork.dsl.database.dbevolution.AlterSchema)1 AlterTable (org.obeonetwork.dsl.database.dbevolution.AlterTable)1 AlterView (org.obeonetwork.dsl.database.dbevolution.AlterView)1 RemoveIndex (org.obeonetwork.dsl.database.dbevolution.RemoveIndex)1 UpdateColumnChange (org.obeonetwork.dsl.database.dbevolution.UpdateColumnChange)1