Bug 24442 ASTRewrite: Can't nest swaps
see TextBufferTest.testSwap2InSwap1
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
}
	
	public void testMove4() throws Exception {
		MoveSourceEdit s1= new MoveSourceEdit(7, 2);
		MoveTargetEdit t1= new MoveTargetEdit(2, s1);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(5, 1, "x");
		fEditor.add(s1);
		fEditor.add(t1);
		fEditor.add(e2);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "0178234x69", fBuffer.getContent());
		assertEquals(s1.getTextRange(), 9, 0);
		assertEquals(t1.getTextRange(), 2, 2);
		assertEquals(e2.getTextRange(), 7, 1);
		doUndoRedo(undo, "0178234x69");
	}
	
	public void testMove5() throws Exception {
		
		MoveSourceEdit s1= new MoveSourceEdit(2, 1);
		MoveTargetEdit t1= new MoveTargetEdit(3, s1);
		SimpleTextEdit e2= SimpleTextEdit.createReplace(2,1,"x");
		s1.add(e2);
		fEditor.add(s1);
		fEditor.add(t1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals(s1.getTextRange(), 2, 0);
		assertEquals(t1.getTextRange(), 2, 1);