Search in sources :

Example 6 with DiffContentService

use of org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService in project InformationSystem by ObeoNetwork.

the class UpdateColumnChangeItemProvider 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) {
    UpdateColumnChange updateColumnChange = (UpdateColumnChange) object;
    Column column = updateColumnChange.getColumn();
    AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
    final String parentLabel = delegator.getText(column);
    return getString("_UI_UpdateColumnChange_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(updateColumnChange, updateColumnChange.getMatch().getComparison()).size() });
}
Also used : Column(org.obeonetwork.dsl.database.Column) AdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator) UpdateColumnChange(org.obeonetwork.dsl.database.dbevolution.UpdateColumnChange) DiffContentService(org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)

Example 7 with DiffContentService

use of org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService 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

DiffContentService (org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)7 AdapterFactoryItemDelegator (org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator)5 Diff (org.eclipse.emf.compare.Diff)2 Comparison (org.eclipse.emf.compare.Comparison)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 DBDiff (org.obeonetwork.dsl.database.dbevolution.DBDiff)1 RemoveIndex (org.obeonetwork.dsl.database.dbevolution.RemoveIndex)1 UpdateColumnChange (org.obeonetwork.dsl.database.dbevolution.UpdateColumnChange)1