[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Embedding a text editor in another editor

Hello all,

Got a little problem...
I have made an editor (which extends the TextEditor) which works fine (syntax highlight, autocompletion, annotations, etc).


But now I would like to "embed" this editor in other parts of my application (which could be other editors, or even dialogs) in order to reuse all my editor features. Since my editor is an editor part I am not sure if I can do this. I do need to keep the standalone editor as well.

Haven't tried yet, but would it be OK to programatically call the init / createPartControl of my existing editor, providing the SWT controls in which I would like to insert the editor ?

This is something similar to what may have been done in the breakpoint properties dialog in the "breakpoint condition" section. Or similar to the "Compare with" action which displays 2 java editors for the previous and current version...

Thanks.
Christophe.