Bug 57131 Remove references to AST#parseCompilationUnit from java.compare
JDT Core wants to remove the following methods (that have been deprecated for several builds now) for next integration build: - AST#parseCompilationUnit(ICompilationUnit,boolean,WorkingCopyOwner) (use ASTParser instead) - ICompilationUnit#reconcile(boolean, IProgressMonitor) (use reconcile(boolean, boolean, WorkingCopyOwner, IProgressMonitor) instead)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaAddElementFromHistory.java
ITypedElement selected= d.selectEdition(target, editions, parent);
			if (selected == null)
				return;	
								
			ICompilationUnit cu2= cu;
			if (parent instanceof IMember)
				cu2= ((IMember)parent).getCompilationUnit();
			
			CompilationUnit root= AST.parsePartialCompilationUnit(cu2, 0, false, null, null);
			
			OldASTRewrite rewriter= new OldASTRewrite(root);
			
			List list= getContainerList(parent, root);
			if (list == null) {
				MessageDialog.openError(shell, errorTitle, errorMessage);
				return;					
			}
			
			int pos= getIndex(root, input, list);
							
			ITypedElement[] results= d.getSelection();
			for (int i= 0; i < results.length; i++) {
								
				ASTNode newNode= createASTNode(rewriter, results[i], buffer.getLineDelimiter());
				if (newNode == null) {
					MessageDialog.openError(shell, errorTitle, errorMessage);
					return;					
				}			
				if (pos < 0 || pos >= list.size()) {
					if (newNode instanceof BodyDeclaration) {