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() });
}
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;
}
Aggregations