Is it somehow possible to insert an EditorArea into a View in Eclipse RCP?
I would like to define a restricted area, inside of which the Editors may be moved.
Is it somehow possible to insert an EditorArea into a View in Eclipse RCP?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not easily – in general, there is ‘one’ EditorArea for an Eclipse application.
You could use a custom presentation layer to put that EditorArea over one of your views, but that would be it.
A potential (high-level) solution would likely involve passing an
EditorPartinstance to a custom view, which will then callcreatePartControlto render the editor contents inside the view, and manage any necessary initialization of the editor.Since this editor would be a child control of the view, you might also need to do special hookups for selection/editorsite/actionbars/shortcut keys, etc, so that they continue to work when that editor is being run from within the view.