e3 editor in e4 RCP? [message #1413319] |
Thu, 28 August 2014 05:12  |
Eclipse User |
|
|
|
I am using Eclipse Luna (4.4.0) for RCP and RAP Developers. Is there yet a (simple) possiblity to use e3 editors (e.g. AbstractTextEditor or XMLMultiPageEditorPart) in a e4 RCP application?
All I have found is a rather complicated looking method in Lars Vogel's migration tutorial involving a modified LegacyIDE.e4xmi. There Lars also mentioned that Eclipse 4.4 plans to to enhance the support for mixing 3.x and 4.x API components. Unfortunately the linked bug report still has the status "NEW", so that method obviously has not been implemented yet.
Is there any other option?
Thanks
Ulrich
|
|
|
|
|
Re: e3 editor in e4 RCP? [message #1413874 is a reply to message #1413865] |
Fri, 29 August 2014 12:35   |
Eclipse User |
|
|
|
Here is what I did so far:
(1) I created a Area with the id "org.eclipse.ui.editorss" in the .e4xmi
file. (I debuged the openEditor code to find out how e4 findes the area to
open the editor in ... and it actually searches for the area with the id
mentioned above. Be aware of the double ss!
(2) I created a StackPart as the child of the area file
(3) I created a MPart in the e4xmi file :
(3.1) added an id
(3.2) added a label
(3.3) added the class uri
"bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor"
(3.4) now the compatibilityEditor class still needs to know which "old" e3
Editor it should wrap. I used the "Live Model Editor" view of e4 to see
how eclipse does it. obviously they add memento in the persisted state
with the following value:
<persistedState key="memento" value="<?xml
version="1.0" encoding="UTF-8"?>
<editor
id="org.example.ABCEditor"/editor>"/>
with org.example.ABCEditor beeing the e3 class implementing the editor
So now my editor opens in the area, but I still have problems since it
disapears again when I resize the window. (It will show as soon as you do
something which causes the area to be rendered again, like resizing the
SashContainers ...
Hope this helps
Am .08.2014, 18:05 Uhr, schrieb Ulrich Mertin <forums-noreply@xxxxxxxx>:
> Martin Tauber wrote on Fri, 29 August 2014 11:57
>> Hi Ulrich
>> how did you manage to get the editors working?
>> Regards
>> Martin
>
>
> Not at all, so far. Still waiting for a hint. It should be possible, as
> Eclipse 4 itself uses the XMLMultiPageEditorPart, but I don't have a
> clue, how it is done.
>
> Ulrich
--
Erstellt mit Operas E-Mail-Modul: http://www.opera.com/mail/
|
|
|
|
|
|
|
Re: e3 editor in e4 RCP? [message #1490002 is a reply to message #1489684] |
Thu, 27 November 2014 16:43  |
Eclipse User |
|
|
|
Ondrej Doubek wrote on Thu, 27 November 2014 10:41Please do you have some progress in this matter?
Unfortunately not. Presently I'm using e3 plugins in compatibility mode.
|
|
|
Powered by
FUDForum. Page generated in 0.05216 seconds