public class ReplaceRegion
extends java.lang.Object
implements org.eclipse.jface.text.ITypedRegion
ReplaceRegion
instead. TODO: deprecate as soon as the ContentFormatterFactory
's API can be changed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REPLACE |
Constructor and Description |
---|
ReplaceRegion(int offset,
int originalLength,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
int |
getLength() |
int |
getOffset() |
java.lang.String |
getText() |
java.lang.String |
getType() |
void |
mergeWith(ReplaceRegion next,
java.lang.Object textAfterNextChange) |
protected int |
toOriginalIndex(int indexAfterReplace) |
protected int |
toReplacedIndex(int originalIndex) |
public static final java.lang.String REPLACE
public ReplaceRegion(int offset, int originalLength, java.lang.String text)
offset
- originalLength
- text
- public java.lang.String getType()
getType
in interface org.eclipse.jface.text.ITypedRegion
public void mergeWith(ReplaceRegion next, java.lang.Object textAfterNextChange)
protected int toOriginalIndex(int indexAfterReplace)
protected int toReplacedIndex(int originalIndex)
public int getOffset()
getOffset
in interface org.eclipse.jface.text.IRegion
public java.lang.String getText()
public int getLength()
getLength
in interface org.eclipse.jface.text.IRegion