use of org.eclipse.gmf.runtime.common.core.command.CompositeCommand in project tdi-studio-se by Talend.
the class BusinessBaseEditHelper method getInsteadCommand.
/**
* @generated
*/
protected ICommand getInsteadCommand(IEditCommandRequest req) {
ICommand epCommand = (ICommand) req.getParameter(EDIT_POLICY_COMMAND);
req.setParameter(EDIT_POLICY_COMMAND, null);
ICommand ehCommand = super.getInsteadCommand(req);
if (epCommand == null) {
return ehCommand;
}
if (ehCommand == null) {
return epCommand;
}
CompositeCommand command = new CompositeCommand(null);
command.add(epCommand);
command.add(ehCommand);
return command;
}
use of org.eclipse.gmf.runtime.common.core.command.CompositeCommand in project tdi-studio-se by Talend.
the class BusinessGraphicalNodeEditPolicy method getConnectionWithReorientedViewCompleteCommand.
/**
* @generated
*/
protected Command getConnectionWithReorientedViewCompleteCommand(CreateConnectionRequest request) {
ICommandProxy c = (ICommandProxy) super.getConnectionCompleteCommand(request);
CompositeCommand cc = (CompositeCommand) c.getICommand();
TransactionalEditingDomain editingDomain = ((IGraphicalEditPart) getHost()).getEditingDomain();
BusinessReorientConnectionViewCommand rcvCommand = new BusinessReorientConnectionViewCommand(editingDomain, null);
rcvCommand.setEdgeAdaptor(getViewAdapter());
cc.compose(rcvCommand);
return c;
}
Aggregations