Bug 33040 No single Undo for generate delegate methods
RC 1 - JUnit setup - open TestCase - select fName - generate delegate methods for all String methods - press Ctrl+Z Observe: only one method is removed.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
}
				body.append('.').append(methodName).append('(');
				for (int i = 0; i < paramNames.length; i++) {
					body.append(paramNames[i]);
					if (i < paramNames.length - 1)
						body.append(',');
				}
				body.append(");"); 
				methodDeclaration = body.toString();
			}
			StubUtility.genMethodDeclaration(fType.getElementName(), curr, methodDeclaration, imports, buf);
			return buf.toString();
		}
	}
	
	private IMethod[] processResults(List list, IType type) throws InvocationTargetException {
		if (list.size() == 0)
			return null;
		ResultRunner resultRunner = new ResultRunner(list, type);
		IRunnableContext runnableContext = new ProgressMonitorDialog(getShell());
		try {
			runnableContext.run(false, true, new WorkbenchRunnableAdapter(resultRunner));
		} catch (InterruptedException e) {
			
			return null;
		}
		return resultRunner.getCreatedMethods();
	}
	
	private static class FieldContentProvider implements ITreeContentProvider {