|Including a diagram ditor in a MultiPageEditor [message #1194821]
||Mon, 18 November 2013 18:15
| Juan Manuel Moreno Rivera
Registered: January 2012
I am not sure if this is the correct place. If not, just let me know and I will move, because I am trying to reuse a diagram editor into my plugin, a MultiPageEditor.|
I assume that it is imposible to embed an editor in a section's composite, isn't it? This would be ideal for me (I want to devide one page in to editors) but after looking in the documentation I haven't found any way to do that and as far as I understand the Parts / Views / Editors phhilosohy it is not expected to be done, so it can not be done. If I am wrong, could you point me to any example?
The issue is that I created the diagam editor in a GMF-based plugin automatically generated. On the other side I have my MultiPageEditor with my RCP form pages created. In one of the pages I would like to add this editor but when using the addPage(IEditorPart, IEditorInput) method, I use my Editor class as the first parameter and a new IEditorInput implementation as the second one.
Eclipse says I can not use my Editor class in the first parameter but it extends DiagramDocumentEditor, which implements IEditorPart. So, it should be working or maybe I am meshing a lot with the deep inside parts of Eclipse. I have developed previously plugins (with GMF or my own ones) but basic ones and using wizards. THis is my first time getting so deep into the IDE architecture.
Powered by FUDForum
. Page generated in 0.02044 seconds