Package org.eclipse.jface.text.link
Class InclusivePositionUpdater
- java.lang.Object
-
- org.eclipse.jface.text.link.InclusivePositionUpdater
-
- All Implemented Interfaces:
IPositionUpdater
public class InclusivePositionUpdater extends Object implements IPositionUpdater
Position updater that considers any change in[p.offset, p.offset + p.length]of aPositionpas belonging to the position.- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description InclusivePositionUpdater(String category)Creates a new updater for the givencategory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Returns the position category.voidupdate(DocumentEvent event)Adapts positions to the change specified by the document event.
-
-
-
Constructor Detail
-
InclusivePositionUpdater
public InclusivePositionUpdater(String category)
Creates a new updater for the givencategory.- Parameters:
category- the new category.
-
-
Method Detail
-
update
public void update(DocumentEvent event)
Description copied from interface:IPositionUpdaterAdapts positions to the change specified by the document event. It is ensured that the document's partitioning has been adapted to this document change and that all the position updaters which have a smaller index in the document's position updater list have been called.- Specified by:
updatein interfaceIPositionUpdater- Parameters:
event- the document event describing the document change
-
getCategory
public String getCategory()
Returns the position category.- Returns:
- the position category
-
-