Class DirtyRegion
- java.lang.Object
-
- org.eclipse.jface.text.reconciler.DirtyRegion
-
- All Implemented Interfaces:
IRegion,ITypedRegion
public class DirtyRegion extends Object implements ITypedRegion
A dirty region describes a document range which has been changed.
-
-
Constructor Summary
Constructors Constructor Description DirtyRegion(int offset, int length, String type, String text)Creates a new dirty region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLength()Returns the length of the region.intgetOffset()Returns the offset of the region.StringgetText()Returns the text that changed as part of the region change.StringgetType()Returns the content type of the region.
-
-
-
Field Detail
-
INSERT
public static final String INSERT
Identifies an insert operation.- See Also:
- Constant Field Values
-
REMOVE
public static final String REMOVE
Identifies a remove operation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOffset
public int getOffset()
Description copied from interface:IRegionReturns the offset of the region.
-
getLength
public int getLength()
Description copied from interface:IRegionReturns the length of the region.
-
getType
public String getType()
Description copied from interface:ITypedRegionReturns the content type of the region.- Specified by:
getTypein interfaceITypedRegion- Returns:
- the content type of the region
-
getText
public String getText()
Returns the text that changed as part of the region change.- Returns:
- the changed text
-
-