|
|
|
Re: e3 editor in e4 RCP? [message #1413874 is a reply to message #1413865] |
Fri, 29 August 2014 16:35 |
Martin Tauber Messages: 122 Registered: July 2009 |
Senior Member |
|
|
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/
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06530 seconds