[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: TextEditor problems: no spell checker, no status bar messages

Following what Daniel wrote...

For the spelling part, make sure your source viewer configuration extends the TextSourceViewerConfiguration, which has spelling support. Make sure that you source view configuration is instantiated with the preference store gotten from TextEditor.getPreferenceStore(), which returns the preference store the for text editor. So, when instantiating your source viewer configuration call super(IPreferenceStore thePrefStoreYouGot).

See TextEditorSourceViewerConfiguration.getReconciler(ISourceViewer sourceViewer) to know what I mean. Set a breakpoint there to make sure your editor goes there.

Daniel Megert wrote:
Daniel Winterstein wrote:


I've implemented a custom text editor, subclassing TextEditor. Some of the TextEditor functionality breaks:
- Spell checking doesn't appear
- The status bar is blank. I.e. the normal messages of writable, line number, etc. are missing.

Some possible reasons: - you overwrote createSourceViewer() and do something wrong there - your editor action bar contributor is not OK - your source viewer configuration is not OK

Dani

If you've seen this problem before and no what's going wrong, please help. Thanks,
Daniel