Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF Forms] Generic Editor and RAP
[EMF Forms] Generic Editor and RAP [message #1789877] Thu, 31 May 2018 09:40 Go to next message
Nikola Veber is currently offline Nikola VeberFriend
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 Go to previous messageGo to next message
Jonas Helming is currently offline Jonas HelmingFriend
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 Go to previous messageGo to next message
Nikola Veber is currently offline Nikola VeberFriend
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

Re: [EMF Forms] Generic Editor and RAP [message #1790022 is a reply to message #1789961] Sun, 03 June 2018 10:34 Go to previous message
Nikola Veber is currently offline Nikola VeberFriend
Messages: 31
Registered: December 2017
Member
Update:

with version 1.15, I checked out the editor project and played around a bit. At the moment I am stuck with:
Unresolved requirement: Require-Bundle: org.eclipse.emfforms.swt.treemasterdetail; bundle-version="[1.15.0,1.16.0)"
-> Bundle-SymbolicName: org.eclipse.emfforms.swt.treemasterdetail; bundle-version="1.15.0.20171220-1057"; singleton:="true"
org.eclipse.emfforms.swt.treemasterdetail [127]
Unresolved requirement: Require-Bundle: org.eclipse.emf.edit.ui; bundle-version="[2.10.0,3.0.0)"

After checking the git log for the TreeMasterDetail bundle (remove bundle dependency on org.eclipse.emf.edit.ui):
https://git.eclipse.org/c/emfclient/org.eclipse.emf.ecp.core.git/commit/bundles/org.eclipse.emfforms.swt.treemasterdetail/META-INF/MANIFEST.MF?id=e9d40d8707fd94df23e5a0bff1acca1c8e47d1cb

Similar approach is suggested here (changing bundle dependencies for import-package declarations):
https://www.youtube.com/watch?v=Z2PNgxJQK9c

I wil try to make it work with the current master version and report the results.
Previous Topic:[EMF Forms] What happened to the JavaFX renderer between version 1.7.2 and 1.8.0?
Next Topic:how to display eStructuralFeatures based on certain condition
Goto Forum:
  


Current Time: Thu Mar 28 20:08:14 GMT 2024

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

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

Back to the top