|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.text.DefaultPositionUpdater
org.eclipse.jface.text.ProjectionPositionUpdater
The position updater used to adapt the positions corresponding to the fragments of
projection documents. The startegy of this updater differs from the
DefaultPositionUpdater. If an insertion happens at a start offset of a
range corresponding to a fragment, the range is extended rather than shifted. Also, if
text is added right behind the end of such a range, the range is extended rather than
kept stable.
This class is for internal use only.
| Field Summary |
| Fields inherited from class org.eclipse.jface.text.DefaultPositionUpdater |
fDocument, fLength, fOffset, fOriginalPosition, fPosition, fReplaceLength |
| Constructor Summary | |
protected |
ProjectionPositionUpdater(String category)
Creates the position updater for the given category. |
| Method Summary | |
protected void |
adaptToInsert()
If an insertion happens at a start offset of a range corresponding to a fragment, the range is extended rather than shifted. |
protected boolean |
notDeleted()
Projection document ranges cannot be deleted other then by calling ProjectionDocumentManager#removeFragment. |
| Methods inherited from class org.eclipse.jface.text.DefaultPositionUpdater |
adaptToRemove, adaptToReplace, getCategory, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ProjectionPositionUpdater(String category)
category - the category used to manage the positions representing the ranges corresponding to fragments| Method Detail |
protected boolean notDeleted()
ProjectionDocumentManager#removeFragment.
notDeleted in class DefaultPositionUpdatertrueprotected void adaptToInsert()
adaptToInsert in class DefaultPositionUpdater
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||