/** @generated */ public boolean canExecute() { Process container = (Process) getElementToEdit(); if (container.getHasPrecondition() != null) { return false; } return true; }
/** @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { Condition newElement = ExprFactory.eINSTANCE.createCondition(); Process owner = (Process) getElementToEdit(); owner.setHasPrecondition(newElement); doConfigure(newElement, monitor, info); ((CreateElementRequest) getRequest()).setNewElement(newElement); return CommandResult.newOKCommandResult(newElement); }