/** @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { if (!canExecute()) { throw new ExecutionException("Invalid arguments in create link command"); // $NON-NLS-1$ } ObjectFlow newElement = UMLFactory.eINSTANCE.createObjectFlow(); getContainer().getEdges().add(newElement); newElement.setSource(getSource()); newElement.setTarget(getTarget()); ElementInitializers.getInstance().init_ObjectFlow_4003(newElement); doConfigure(newElement, monitor, info); ((CreateElementRequest) getRequest()).setNewElement(newElement); return CommandResult.newOKCommandResult(newElement); }