Search in sources :

Example 1 with AlterView

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

the class AlterViewItemProvider 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) {
    final AlterView alterView = (AlterView) object;
    final View view = alterView.getView();
    AdapterFactoryItemDelegator delegator = new AdapterFactoryItemDelegator(getRootAdapterFactory());
    final String parentLabel = delegator.getText(view);
    return getString("_UI_AlterView_type", new Object[] { parentLabel, new DiffContentService().getSubDiffs(alterView, alterView.getMatch().getComparison()).size() });
}
Also used : AlterView(org.obeonetwork.dsl.database.dbevolution.AlterView) AdapterFactoryItemDelegator(org.eclipse.emf.edit.provider.AdapterFactoryItemDelegator) View(org.obeonetwork.dsl.database.View) AlterView(org.obeonetwork.dsl.database.dbevolution.AlterView) DiffContentService(org.obeonetwork.dsl.database.compare.extensions.services.DiffContentService)

Example 2 with AlterView

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

the class ViewChangeBuilder method handleAlterChange.

@Override
protected Diff handleAlterChange(Match change) {
    AlterView alterView = DbevolutionFactory.eINSTANCE.createAlterView();
    alterView.setView((View) change.getLeft());
    alterView.setTarget(change.getRight());
    return alterView;
}
Also used : AlterView(org.obeonetwork.dsl.database.dbevolution.AlterView)

Aggregations

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