dslforge icon indicating copy to clipboard operation
dslforge copied to clipboard

Provide an easy way to instantiate editor as widget

Open ulrichobjectsecurity opened this issue 9 years ago • 2 comments

Thanks for your great tool! We are running the editor in a viewpart as a widget, but it was only possible with significant tricks and hacks. It would be great to have a way to simply instantiate the editor (with content assist and validation) as a widget in a viewpart.

ulrichobjectsecurity avatar Dec 06 '16 22:12 ulrichobjectsecurity

Thank you for submitting this issue. Currently, embedding the editor as-is into a view part is not the proper approach (activation/deactivation, dirty state, focus, etc.), the solution would be to embed/adapt the text viewer TextViewer and manage a fake context behind.

amlajmi avatar Dec 07 '16 08:12 amlajmi

thank you very much. could you please provide a code example of how to do this with TextViewer so that the content assist and validation work?

ulrichobjectsecurity avatar Dec 13 '16 03:12 ulrichobjectsecurity