if (contentTypeId == null) {
contentTypeId = IContentTypeManager.CT_TEXT;
}
if (getTextViewer() instanceof ISourceViewer) {
ISourceViewer viewer = (ISourceViewer) getTextViewer();
fSpellcheckStrategy = new SpellcheckStrategy(viewer, contentTypeId);
fSpellcheckStrategy.setDocument(getDocument());
}
}
return fSpellcheckStrategy;
}