Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration'
class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :(
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
setImage(JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_LOCAL));
		}
	}
	/*
	 * @see JavaCorrectionProposal#addEdits(CompilationUnitChange)
	 */
	protected void addEdits(CompilationUnitChange changeElement) throws CoreException {
		ICompilationUnit cu= changeElement.getCompilationUnit();
		
		CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
		ImportEdit importEdit= new ImportEdit(cu, settings);
		String content= generateStub(importEdit, fNode);
		if (!importEdit.isEmpty()) {
			changeElement.addTextEdit("imports", importEdit); 
		}		
		if (fVariableKind == LOCAL) {
			
			changeElement.addTextEdit("local", new AddLocalVariableEdit(fNode, content, settings.tabWidth)); 
		} else if (fVariableKind == FIELD) {
			
			changeElement.addTextEdit("field", createFieldEdit(content, settings.tabWidth)); 
		} else if (fVariableKind == PARAM) {
			
			changeElement.addTextEdit("parameter", new AddParameterEdit(cu, fNode, content)); 
		}
	}
	
	private TextEdit createFieldEdit(String content, int tabWidth) throws CoreException {
		boolean parentIsType= (fParentMember.getElementType() ==  IJavaElement.TYPE);