Bug 33543 Add catch clause to surrounding try doesn't honor code templates [quick fix]
RC1 Test Case import java.io.IOException; public class Test { public void foo() { try { ex1(); ex2(); } catch (IOException e) { e.printStackTrace(); } } public void ex1() throws IOException { } public void ex2 () throws InterruptedException { } } Observe: the generated catch block is empty.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java
if (declaration != null) {
			
			ASTNode nodeToRemove= declaration;
			if (declaration.getNodeType() == ASTNode.FIELD_DECLARATION) {
				List fragments= ((FieldDeclaration) declaration).fragments();
				if (fragments.size() > 1) {
					for (int i= 0; i < fragments.size(); i++) {
						VariableDeclarationFragment node= (VariableDeclarationFragment) fragments.get(i);
						if (ASTNodes.isParent(selectedNode, node)) {
							nodeToRemove= node;
							break;
						}
					}
				}
			}
			
			ASTRewrite rewrite= new ASTRewrite(nodeToRemove.getParent());		
			rewrite.markAsRemoved(nodeToRemove);
			
			String label= CorrectionMessages.getString("LocalCorrectionsSubProcessor.removeunusedmember.description"); 
			Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);
			ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 6, image);
			proposal.ensureNoModifications();
			proposals.add(proposal);			
		}
		
	}
	
}