Bug 7985 extract method: cannot extract (entire) try/catch block
public class A{ String f(int y, int z, boolean ff){ /*[*/try{ } catch (Exception e){ }/*]*/ return null; } void f(){} } cannot extract the selected fragment
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
public void testMove5() throws Exception {
		
		MoveTextEdit e1= new MoveTextEdit(2, 1, 3);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(2,1,"x");
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assert(e1.getTargetRange(), 2, 1);
		assert(e1.getSourceRange(), 3, 0);
		assert(e2.getTextRange(), 2, 1);
		assertEquals("Buffer content", "01x3456789", fBuffer.getContent());
		doUndo(undo);
		assert(e1.getSourceRange(), 2, 1);
		assert(e1.getTargetRange(), 3, 0);
		assert(e2.getTextRange(), 2, 1);
	}
	
	public void testMove6() throws Exception {
		
		MoveTextEdit e1= new MoveTextEdit(2, 1, 2);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(2,1,"x");
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assert(e1.getTargetRange(), 2, 1);
		assert(e1.getSourceRange(), 3, 0);		
		assert(e2.getTextRange(), 2, 1);