new ReferenceUpdate(delegateInvocation, d.getDelegateRewrite(), fResult).updateNode(); new DocReferenceUpdate(d.getJavadocReference(), d.getDelegateRewrite(), fResult).updateNode();
new ReferenceUpdate(delegateInvocation, creator.getDelegateRewrite(), fResult).updateNode(); new DocReferenceUpdate(creator.getJavadocReference(), creator.getDelegateRewrite(), fResult).updateNode();
		private void addDelegate() throws JavaModelException {			DelegateMethodCreator d= new DelegateMethodCreator();			d.setDeclaration(fMethDecl);			d.setDeclareDeprecated(fDelegateDeprecation);			d.setSourceRewrite(fCuRewrite);			d.prepareDelegate();						/*			 * The delegate now contains a call and a javadoc reference to the			 * old method (i.e., to itself).			 * 			 * Use ReferenceUpdate() / DocReferenceUpdate() to update these			 * references like any other reference.			 */			final ASTNode delegateInvocation= d.getDelegateInvocation();			if (delegateInvocation != null)				// may be null if the delegate is an interface method or				// abstract -> no body				new ReferenceUpdate(delegateInvocation, d.getDelegateRewrite(), fResult).updateNode();			new DocReferenceUpdate(d.getJavadocReference(), d.getDelegateRewrite(), fResult).updateNode();						d.createEdit();		}