Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Editor Questions - multiple editors / Form Editor in e4
Editor Questions - multiple editors / Form Editor in e4 [message #1237087] Tue, 28 January 2014 20:47 Go to next message
Sebastian Lehmann is currently offline Sebastian LehmannFriend
Messages: 2
Registered: January 2014
Junior Member
Hello,

I am going to migrate an existing Eclipse 3 RCP application to a pure e4 application (more work than I thought). The editors seems to be tricky.

A small problem :
After clicking on a table row the editor opens:
PartDescriptor defined, createPart called and then: part.getTransientData().put(DATA, person);
In the class editor @PostConstruct I can then through the DATA entry represent the label (part.setLabel (...)) and display the editor data.
Now I have to avoid that the editor for one person will not be opened several times. In Eclipse 3 this was the task of the IEditorInput implementation (equals , ..).
Is there something similar in e4 or do I need to manually implement it?

A bigger problem :
The editor was in Eclipse3 a form editor (such as for the plugin.xml) with two pages.
Is this now possible with Kepler or Luna or do I have to implement it myself (create an implementation for FormEditor and FormPage).
Does anyone have experience with it already?

I am grateful for any help.

Regards
Sebastian
Re: Editor Questions - multiple editors / Form Editor in e4 [message #1237262 is a reply to message #1237087] Wed, 29 January 2014 09:06 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot CelaFriend
Messages: 597
Registered: December 2010
Senior Member

For the small problem yes you have to take care of that yourself if you want to stay pure e4. It's not available yet. Editor handling is in the pipe.

Also for the bigger one, your editor can not be more than an MPart at the moment. No support for multiple-pages editors yet.
Re: Editor Questions - multiple editors / Form Editor in e4 [message #1237308 is a reply to message #1237087] Wed, 29 January 2014 11:01 Go to previous message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 503
Registered: July 2009
Senior Member
Hi,
I would try to implement your new solution in a way, that it is
independant of the concrete usage in the workbench. This way, you can
reuse it much easier in the future (e.g. in a wizard). To create a
form-based UI, maybe this can help:
http://eclipsesource.com/blogs/tutorials/emf-client-platform-how-to-customize-the-editor-layout/

Cheers

Jonas

Am 29.01.2014 09:45, schrieb Sebastian Lehmann:
> Hello,
>
> I am going to migrate an existing Eclipse 3 RCP application to a pure e4
> application (more work than I thought). The editors seems to be tricky.
>
> A small problem :
> After clicking on a table row the editor opens:
> PartDescriptor defined, createPart called and then:
> part.getTransientData().put(DATA, person); In the class editor
> @PostConstruct I can then through the DATA entry represent the label
> (part.setLabel (...)) and display the editor data.
> Now I have to avoid that the editor for one person will not be opened
> several times. In Eclipse 3 this was the task of the IEditorInput
> implementation (equals , ..). Is there something similar in e4 or do I
> need to manually implement it?
>
> A bigger problem :
> The editor was in Eclipse3 a form editor (such as for the plugin.xml)
> with two pages.
> Is this now possible with Kepler or Luna or do I have to implement it
> myself (create an implementation for FormEditor and FormPage).
> Does anyone have experience with it already?
>
> I am grateful for any help.
>
> Regards
> Sebastian
Previous Topic:How can I implement 'not save and not close the part' behavior when dirty part will be closed?
Next Topic:How to implement a Job that can be canceled
Goto Forum:
  


Current Time: Sat Dec 20 08:16:37 GMT 2014

Powered by FUDForum. Page generated in 0.02928 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software