public void doExecute() { CMPAttribute cmpAttribute = (CMPAttribute) this.owner; JavaHelpers type = cmpAttribute.getType(); super.doExecute(); if (cmpAttribute.getType() != type) { setTypeCommand = SetCommand.create(this.domain, this.owner, EcorePackage.eINSTANCE.getETypedElement_EType(), type); if (setTypeCommand.canExecute()) { setTypeCommand.execute(); } else { setTypeCommand.dispose(); setTypeCommand = null; } } }
public void execute() setCommand.doExecute();
public void execute() setCommand.doExecute();