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 testMove1() throws Exception {
		MoveTextEdit e1= new MoveTextEdit(2, 2, 5);
		fEditor.add(e1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "0142356789", fBuffer.getContent());
		assert(e1.getTargetRange(), 3, 2);
		assert(e1.getSourceRange(), 2, 0);
		doUndo(undo);
		assert(e1.getSourceRange(), 2, 2);
		assert(e1.getTargetRange(), 5, 0);
	}
	
	public void testMove2() throws Exception {
		MoveTextEdit e1= new MoveTextEdit(5, 2, 2);
		fEditor.add(e1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "0156234789", fBuffer.getContent());
		assert(e1.getTargetRange(), 2, 2);
		assert(e1.getSourceRange(), 7, 0);
		doUndo(undo);
		assert(e1.getSourceRange(), 5, 2);
		assert(e1.getTargetRange(), 2, 0);
	}
	public void testMove3() throws Exception {
		MoveTextEdit e1= new MoveTextEdit(2, 2, 7);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(4, 1, "x");