Bug 39324 TextEdits: Moved positions removed
20030625 See TextBufferTest.testMoveWithRangeMarker2 The RangeMarker is inside the MoveSource, and the MoveSource inside a delete: The resulting range of the Range Marker is deleted, not moved (TextBufferTest.testMoveWithRangeMarker shows that is works if there is no surrounding delete)
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
innerRoot.add(t1);
		}
		
		editor.add(innerRoot);
		
		assertTrue("Can perform edits", editor.canPerformEdits());
		editor.performEdits(null);
		String result= "foo(2, 1), 3";
		assertEquals("Buffer content", result, buffer.getContent());
	}	
	
	public void testSwap2InSwap1() throws Exception {
		TextBuffer buffer= TextBuffer.create("foo(1, 2), 3");
		TextBufferEditor editor= new TextBufferEditor(buffer);		
		
		CopySourceEdit innerRoot= new CopySourceEdit(0, 9);
		{
			SimpleTextEdit e1= SimpleTextEdit.createReplace(4, 1, "");
			CopySourceEdit s1= new CopySourceEdit(4, 1);
			e1.add(s1);
			CopyTargetEdit t1= new CopyTargetEdit(7, s1);
			
			SimpleTextEdit e2= SimpleTextEdit.createReplace(7, 1, "");
			CopySourceEdit s2= new CopySourceEdit(7, 1);
			e2.add(s2);
			CopyTargetEdit t2= new CopyTargetEdit(4, s2);
			
			innerRoot.add(e1);
			innerRoot.add(t2);
			innerRoot.add(e2);