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