# Uses of Class
org.eclipse.jface.text.BadPositionCategoryException

Packages that use BadPositionCategoryException
Package
Description
org.eclipse.jface.text
Provides a framework for creating and manipulating text documents.
org.eclipse.jface.text.rules
Provides a framework for rule based text scanning and uses the framework to provide rule-driven default implementations of `IPresentationDamager`, `IPresentationRepairer` and `IDocumentPartitioner`.

## Uses of BadPositionCategoryException in org.eclipse.jface.text

Methods in org.eclipse.jface.text that throw BadPositionCategoryException
Modifier and Type
Method
Description
`void`
AbstractDocument.`addPosition(String category, Position position)`
`void`
IDocument.`addPosition(String category, Position position)`
Adds the position to the specified position category of the document.
`int`
AbstractDocument.`computeIndexInCategory(String category, int offset)`
`int`
IDocument.`computeIndexInCategory(String category, int offset)`
Computes the index at which a `Position` with the specified offset would be inserted into the given category.
`Position[]`
AbstractDocument.`getPositions(String category)`
`Position[]`
AbstractDocument.`getPositions(String category, int offset, int length, boolean canStartBefore, boolean canEndAfter)`
Returns all positions of the given category that are inside the given region.
`Position[]`
IDocument.`getPositions(String category)`
Returns all positions of the given position category.
`void`
AbstractDocument.`removePosition(String category, Position position)`
`void`
IDocument.`removePosition(String category, Position position)`
Removes the given position from the specified position category.
`void`
AbstractDocument.`removePositionCategory(String category)`
`void`
IDocument.`removePositionCategory(String category)`
Deletes the position category from the document.

## Uses of BadPositionCategoryException in org.eclipse.jface.text.rules

Methods in org.eclipse.jface.text.rules that throw BadPositionCategoryException
Modifier and Type
Method
Description
`protected final Position[]`
FastPartitioner.`getPositions()`
Returns the partitioners positions.