use of org.talend.designer.business.model.business.BusinessAssignment in project tdi-studio-se by Talend.
the class BusinessBaseEditHelper method getDestroyElementCommand.
/**
* @generated NOT
*/
protected ICommand getDestroyElementCommand(DestroyElementRequest req) {
if (req.getElementToDestroy() != null) {
if (req.getElementToDestroy() instanceof BusinessItem) {
BusinessItem businessItem = (BusinessItem) req.getElementToDestroy();
if (businessItem.getAssignments().size() > 0) {
UnassignTalendItemsFromBusinessAssignmentCommand command = new UnassignTalendItemsFromBusinessAssignmentCommand(req.getEditingDomain(), false);
for (Iterator iter = businessItem.getAssignments().iterator(); iter.hasNext(); ) {
BusinessAssignment businessAssignment = (BusinessAssignment) iter.next();
command.addBusinessAssignment(businessAssignment);
}
return command;
}
}
}
return null;
}
Aggregations