org.eclipse.xtext.ui.editor.reconciler
Class ReplaceRegion
java.lang.Object
org.eclipse.xtext.ui.editor.reconciler.ReplaceRegion
- All Implemented Interfaces:
- org.eclipse.jface.text.IRegion, org.eclipse.jface.text.ITypedRegion
public class ReplaceRegion
- extends java.lang.Object
- implements org.eclipse.jface.text.ITypedRegion
- Author:
- Jan Köhnlein - Initial contribution and API
Field Summary |
static java.lang.String |
REPLACE
|
Constructor Summary |
ReplaceRegion(int offset,
int originalLength,
java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPLACE
public static final java.lang.String REPLACE
- See Also:
- Constant Field Values
ReplaceRegion
public ReplaceRegion(int offset,
int originalLength,
java.lang.String text)
- Parameters:
offset
- originalLength
- text
-
getType
public java.lang.String getType()
- Specified by:
getType
in interface org.eclipse.jface.text.ITypedRegion
mergeWith
public void mergeWith(ReplaceRegion next,
java.lang.Object textAfterNextChange)
toOriginalIndex
protected int toOriginalIndex(int indexAfterReplace)
toReplacedIndex
protected int toReplacedIndex(int originalIndex)
getOffset
public int getOffset()
- Specified by:
getOffset
in interface org.eclipse.jface.text.IRegion
getText
public java.lang.String getText()
getLength
public int getLength()
- Specified by:
getLength
in interface org.eclipse.jface.text.IRegion