Skip to main content


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: 8
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
Eclipse UserFriend
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 messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
Messages: 699
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
Re: Editor Questions - multiple editors / Form Editor in e4 [message #1692654 is a reply to message #1237262] Fri, 17 April 2015 09:13 Go to previous messageGo to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Sopot Cela wrote on Wed, 29 January 2014 09:06
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.



What's the status of the pipe? Smile Is there a bug to track the progress?

It would be really nice to have an enhanced editor handling with things like content types, comparing editor inputs, and restoring UI states with the same convenience as in E3.
Re: Editor Questions - multiple editors / Form Editor in e4 [message #1692657 is a reply to message #1692654] Fri, 17 April 2015 09:17 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
I've implemented something like that in e(fx)clipse compensator but
naturally that's pure JavaFX & e4.

Tom

On 17.04.15 11:13, Uwe San wrote:
> Sopot Cela wrote on Wed, 29 January 2014 09:06
>> 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.
>
>
>
> What's the status of the pipe? :) Is there a bug to track the progress?
>
> It would be really nice to have an enhanced editor handling with things
> like content types, comparing editor inputs, and restoring UI states
> with the same convenience as in E3.
Re: Editor Questions - multiple editors / Form Editor in e4 [message #1692677 is a reply to message #1692657] Fri, 17 April 2015 10:33 Go to previous message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Thomas Schindl wrote on Fri, 17 April 2015 09:17
I've implemented something like that in e(fx)clipse compensator but naturally that's pure JavaFX & e4.


Yes, a toolkit-independent solution which is not restricted to code editors would be very much appreciated. Apart from that, Compensator is a nice project. Smile
Previous Topic:e4 Handler enabledWhen expression
Next Topic:Eclipse Services as OSGi services
Goto Forum:
  


Current Time: Tue Mar 19 11:49:14 GMT 2024

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

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

Back to the top