use of org.eclipse.emf.ecore.EStructuralFeature in project tdi-studio-se by Talend.
the class BusinessStructuralFeaturesParser method getParseCommand.
/**
* @generated
*/
public ICommand getParseCommand(IAdaptable adapter, Object[] values) {
EObject element = (EObject) adapter.getAdapter(EObject.class);
if (element == null) {
return UnexecutableCommand.INSTANCE;
}
TransactionalEditingDomain editingDomain = TransactionUtil.getEditingDomain(element);
if (editingDomain == null) {
return UnexecutableCommand.INSTANCE;
}
//$NON-NLS-1$
CompositeTransactionalCommand command = new CompositeTransactionalCommand(editingDomain, "Set Values");
for (int i = 0; i < values.length; i++) {
EStructuralFeature feature = (EStructuralFeature) features.get(i);
command.compose(getModificationCommand(element, feature, values[i]));
}
return command;
}
Aggregations