Refactory: Remove UI from core plugin.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / textmanipulation / SwapTextEdit.java
1 /*
2  * (c) Copyright IBM Corp. 2000, 2001.
3  * All Rights Reserved.
4  */
5 package net.sourceforge.phpdt.internal.corext.textmanipulation;
6
7 /**
8  * A <code>SwapTextEdit</code> exchanges to text ranges.
9  */
10 public class SwapTextEdit extends MultiTextEdit {
11         /**
12          * Create a new <code>SwapTextEdit</code>
13          * 
14          * @param offset1
15          *            the offset of the first text range
16          * @param length1
17          *            the length of the first text range
18          * @param offset2
19          *            the offset of the second text range
20          * @param length2
21          *            the length of the second text range
22          */
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));
26         }
27 }