/** @generated */ public boolean canExecute() { AddVariableValueAction container = (AddVariableValueAction) getElementToEdit(); if (container.getInsertAt() != null) { return false; } return true; }
/** @generated */ protected CommandResult doExecuteWithResult(IProgressMonitor monitor, IAdaptable info) throws ExecutionException { InputPin newElement = UMLFactory.eINSTANCE.createInputPin(); AddVariableValueAction owner = (AddVariableValueAction) getElementToEdit(); owner.setInsertAt(newElement); ElementInitializers.getInstance().init_InputPin_3100(newElement); doConfigure(newElement, monitor, info); ((CreateElementRequest) getRequest()).setNewElement(newElement); return CommandResult.newOKCommandResult(newElement); }