Search in sources :

Example 1 with RemoveIndex

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

the class RemoveIndexItemProvider 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) {
    RemoveIndex removeIndex = (RemoveIndex) object;
    Index index = (Index) removeIndex.getIndex();
    AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
    final String parentLabel = delegator.getText(index);
    return getString("_UI_RemoveIndex_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(removeIndex, removeIndex.getMatch().getComparison()).size() });
}
Also used : AdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator) Index(org.obeonetwork.dsl.database.Index) RemoveIndex(org.obeonetwork.dsl.database.dbevolution.RemoveIndex) RemoveIndex(org.obeonetwork.dsl.database.dbevolution.RemoveIndex) DiffContentService(org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)

Example 2 with RemoveIndex

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

the class IndexChangeBuilder method createRemoveIndex.

protected RemoveIndex createRemoveIndex(Table table, Index index, ReferenceChange change) {
    RemoveIndex removeIndex = DbevolutionFactory.eINSTANCE.createRemoveIndex();
    removeIndex.setIndex(index);
    fillDBDiff(removeIndex, change);
    return removeIndex;
}
Also used : RemoveIndex(org.obeonetwork.dsl.database.dbevolution.RemoveIndex)

Aggregations

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