[EMF Forms] Generic Editor and RAP [message #1789877] |
Thu, 31 May 2018 09:40 |
Nikola Veber Messages: 31 Registered: December 2017 |
Member |
|
|
Hi Everyone,
have been using EMF Forms and its generic editor with great joy for last couple of months. Now I got curious if I can make a RAP version of my Generic editor adaptation. I have found this twitter post saying it should run in RAP:
https://twitter.com/jayjaybillings/status/747800829005012992
However, after a couple of hours of struggle, I gave up, but mostly due to my inexperience in RAP.
As I am using version 1.15 of EMF Forms, I was hoping for a couple if hints:
- has anyone tried this? Maybe there are some pointers to examples?
- in the bug / feature list of EMF Forms I have seen some "remove dependency to..." tasks which could be RAP related. Is the 1.15 version perhaps too old, and the same experiment could be better done with a newer version?
Thanks, and best regards!
Nikola
[Updated on: Thu, 31 May 2018 10:13] Report message to a moderator
|
|
|
Re: [EMF Forms] Generic Editor and RAP [message #1789952 is a reply to message #1789877] |
Fri, 01 June 2018 07:31 |
Jonas Helming Messages: 111 Registered: September 2016 |
Senior Member |
|
|
Hi Nikola,
most of the code should work out of the box, i.e. everything inside the editor. If you look at the GenericEditor class, you will see, that this is not a lot of code, it basically puts things together.
However, the GenericEditor itself has direct workspace dependencies, as it loads a file. This part probably needs to be adapted for the RAP use case.
If you can fill in the data another way, there should not be too much work adapting the editor class, in this case, you need to override the way, that the file is loaded and stored.
Do you have a "online" workspace in your application, which also allows to select files?
Best regards,
Jonas
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
--
Jonas Helming
Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
|
|
|
Re: [EMF Forms] Generic Editor and RAP [message #1789961 is a reply to message #1789952] |
Fri, 01 June 2018 08:55 |
Nikola Veber Messages: 31 Registered: December 2017 |
Member |
|
|
Hi Jonas,
in my use-case, opening a single predefined file (XMI or XML) resource would be enough.
(RAP noob warning): Guessing that workspace dependencies are not available in RAP, would Generic Editor dependencies not cause problem when loading? Then maybe creating a fork would make more sense than overriding?
That could result in GenericRAPEditor end GenericRCPEditor...
[Updated on: Fri, 01 June 2018 08:56] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01912 seconds