public class InclusivePositionUpdater extends Object implements IPositionUpdater
[p.offset, p.offset + p.length] of a Position
p as belonging to the position.
Internal class. Do not use. Public for testing purposes only.
| Constructor and Description |
|---|
InclusivePositionUpdater(String category)
Creates a new updater for the given
category. |
| Modifier and Type | Method and Description |
|---|---|
String |
getCategory()
Returns the position category.
|
void |
update(DocumentEvent event)
Adapts positions to the change specified by the document event.
|
public InclusivePositionUpdater(String category)
category.category - the new category.public void update(DocumentEvent event)
IPositionUpdaterupdate in interface IPositionUpdaterevent - the document event describing the document changepublic String getCategory()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.