Class SpellingContext
java.lang.Object
org.eclipse.ui.texteditor.spelling.SpellingContext
A spelling context allows a
ISpellingEngine
to retrieve information
about the spelling check it has to perform.
This class is not intended to be subclassed by clients. The amount of information provided in this context may grow over time.
- Since:
- 3.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the content type of the document.void
setContentType
(IContentType contentType) Sets the content type of the document.
-
Constructor Details
-
SpellingContext
public SpellingContext()Creates a new, un-initialized spelling context.
-
-
Method Details
-
setContentType
Sets the content type of the document.- Parameters:
contentType
- the content type of the document ornull
if unknown
-
getContentType
Returns the content type of the document.- Returns:
- the content type of the document or
null
if unknown
-