2 * (c) Copyright IBM Corp. 2000, 2001.
5 package net.sourceforge.phpdt.internal.corext.textmanipulation;
8 * A <code>SwapTextEdit</code> exchanges to text ranges.
10 public class SwapTextEdit extends MultiTextEdit {
12 * Create a new <code>SwapTextEdit</code>
15 * the offset of the first text range
17 * the length of the first text range
19 * the offset of the second text range
21 * the length of the second text range
23 public SwapTextEdit(int offset1, int length1, int offset2, int length2) {
24 add(new MoveTextEdit(offset1, length1, offset2));
25 add(new MoveTextEdit(offset2, length2, offset1));