* @generated
*/
private Command getEditHelperCommand(IEditCommandRequest request,
Command editPolicyCommand) {
if (editPolicyCommand != null) {
ICommand command = editPolicyCommand instanceof ICommandProxy ? ((ICommandProxy) editPolicyCommand)
.getICommand()
: new CommandProxy(editPolicyCommand);
request
.setParameter(
eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.helpers.PMMLBaseEditHelper.EDIT_POLICY_COMMAND,
command);
}
IElementType requestContextElementType = getContextElementType(request);
request
.setParameter(
eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.helpers.PMMLBaseEditHelper.CONTEXT_ELEMENT_TYPE,
requestContextElementType);
ICommand command = requestContextElementType.getEditCommand(request);
request
.setParameter(
eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.helpers.PMMLBaseEditHelper.EDIT_POLICY_COMMAND,
null);
request
.setParameter(
eu.admire.visual.pmml.neuralnetwork._40.diagram.edit.helpers.PMMLBaseEditHelper.CONTEXT_ELEMENT_TYPE,
null);
if (command != null) {
if (!(command instanceof CompositeTransactionalCommand)) {
command = new CompositeTransactionalCommand(getEditingDomain(),
command.getLabel()).compose(command);
}
return new ICommandProxy(command);
}
return editPolicyCommand;
}