Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsImplementation of e4 editors
https://www.eclipse.org/forums/index.php/mv/msg/512433/1094918/#msg_1094918
One thing that confuses me as a novice in Elipse 4 RCP developent (among many others ). I am running a Eclipse RCP application configured as 3.x compatibility project as described in the "tutorial-eclipse-rcp-e4-with-3-x-views-like-project-explorer-properties-etc" blog entry (I was not allowed to use the relevant URL). The derired behavior would be that a double click on a file in the 3.x. Project Explorer view will open a new Editor Part that ends up in the common editors area. To get this behavior I created an extension to org.eclipse.ui.editors that points to an implementing class that must extend EditorPart (or implement IEditorPart). This structure forces me to implement all kinds of @Override methods that relate to the initialization (init()) and persistence behavior (f.i. doSave()). This approach is described in detail on the Juno doumentation pages.
In many references on the web, for instance on the Vogella site (www.vogella.com/articles/Eclipse4Editor/article.html), it is however mentioned that an e4 editor can however be a POJO that will behave as an editor part by the use of the MDirtyable flag and @Persist annotations.
For me it is difficult to understand how bring together these two worlds of editor implementation being forces implementation of inherited methods versus the annotation/Application model way. Can anyone point me in the right direction?
Thnx for your patience,
Pim]]>Pim van Nierop2013-08-26T11:42:44-00:00Re: Implementation of e4 editors
https://www.eclipse.org/forums/index.php/mv/msg/512433/1095213/#msg_1095213
What's slowing this down a bit is that we need to ensure that the result meshes well with the existing platform API; for example we need to be able to 'grow' an EditorReference for these editors which will mean also growing a WorkbenchEditorPart to act as a front to the rest of the eclipse API...
]]>Eric Moffatt2013-08-26T19:51:32-00:00Re: Implementation of e4 editors
https://www.eclipse.org/forums/index.php/mv/msg/512433/1095544/#msg_1095544
Ok, I consider this to be a work-in-progress then. I will revisit the DI method for editor parts at a later time point. Thanks for this quick answer; for a beginner it is kinda hard to see if one is heading down a wrong implemtation path or not.
Tnx, Pim]]>Pim van Nierop2013-08-27T07:44:32-00:00Re: Implementation of e4 editors
https://www.eclipse.org/forums/index.php/mv/msg/512433/1097105/#msg_1097105
forum post. Maybe other beginners are helped with this too.]]>Pim van Nierop2013-08-29T08:34:38-00:00