use of org.eclipse.gmf.runtime.diagram.ui.requests.EditCommandRequestWrapper in project tdi-studio-se by Talend.
the class BusinessReferenceConnectionEditPolicy method createDeleteSemanticCommand.
/**
* @generated
*/
protected Command createDeleteSemanticCommand(GroupRequest deleteRequest) {
TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost()).getEditingDomain();
EditCommandRequestWrapper semReq = new EditCommandRequestWrapper(new DestroyElementRequest(editingDomain, false), deleteRequest.getExtendedData());
Command semanticCmd = getHost().getCommand(semReq);
if (semanticCmd != null && semanticCmd.canExecute()) {
CompoundCommand cc = new CompoundCommand();
cc.add(semanticCmd);
return cc;
}
return null;
}
Aggregations