Search in sources :

Example 1 with AlterSchema

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

the class SchemaChangeBuilder method handleAlterChange.

@Override
protected Diff handleAlterChange(Match change) {
    AlterSchema alterSchema = DbevolutionFactory.eINSTANCE.createAlterSchema();
    alterSchema.setSchema((Schema) change.getRight());
    fillDBDiff(alterSchema, change);
    return alterSchema;
}
Also used : AlterSchema(org.obeonetwork.dsl.database.dbevolution.AlterSchema)

Example 2 with AlterSchema

use of org.obeonetwork.dsl.database.dbevolution.AlterSchema 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

AlterSchema (org.obeonetwork.dsl.database.dbevolution.AlterSchema)2 AdapterFactoryItemDelegator (org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator)1 Schema (org.obeonetwork.dsl.database.Schema)1 DiffContentService (org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)1