Eclipse Platform
Release 3.1

org.eclipse.ui.texteditor.spelling
Class SpellingContext

java.lang.Object
  extended byorg.eclipse.ui.texteditor.spelling.SpellingContext

public class SpellingContext
extends Object

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

Constructor Summary
SpellingContext()
          Creates a new, un-initialized spelling context.
 
Method Summary
 IContentType getContentType()
          Returns the content type of the document.
 void setContentType(IContentType contentType)
          Sets the content type of the document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellingContext

public SpellingContext()
Creates a new, un-initialized spelling context.

Method Detail

setContentType

public void setContentType(IContentType contentType)
Sets the content type of the document.

Parameters:
contentType - the content type of the document or null if unknown

getContentType

public IContentType getContentType()
Returns the content type of the document.

Returns:
the content type of the document or null if unknown

Eclipse Platform
Release 3.1

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.