Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an easy way to instantiate editor as widget #31

Open
ulrichobjectsecurity opened this issue Dec 6, 2016 · 2 comments
Open

Provide an easy way to instantiate editor as widget #31

ulrichobjectsecurity opened this issue Dec 6, 2016 · 2 comments

Comments

@ulrichobjectsecurity
Copy link

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.

@amlajmi
Copy link
Contributor

amlajmi commented Dec 7, 2016

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.

@ulrichobjectsecurity
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants