EObject copyChild = copyHelper.getCopy((EObject)copyChildObject); if (copyChild != null)
EObject copyChild = copyHelper.getCopy((EObject)copyChildObject); if (copyChild != null)
/** * This constructs an instance that will copy the attribute values of value to those of owner. */ public InitializeCopyCommand(EditingDomain domain, EObject owner, CopyCommand.Helper copyHelper) { super(domain, LABEL, DESCRIPTION); this.owner = owner; this.copy = copyHelper.getCopy(owner); this.copyHelper = copyHelper; }
/** * Return the copy of the specified object or the object itself if it has no copy. */ public EObject getCopyTarget(EObject target, boolean copyRequired) { EObject copied = getCopy(target); if (copied == null) { copied = copyRequired ? null : target; } return copied; }