In my own experience, getting any editor to work within an arbitrary
Composite simply is very difficult. You might want to investigate
the MultiPageEditorPart hierarchy and how it manages a somewhat
similar task, as well as some of the uses of the
StructuredTextViewer directly.