ECP - RAP editor and data binding via emfstore [message #1733400] |
Thu, 26 May 2016 22:09  |
Eclipse User |
|
|
|
Hello Everyone,
I have the following packages
org.example.ecoremodel -> contains the ecore and genmodel
org.example.ecoremodel.edit -> generated code impl
org.example.ecoreviewmodel -> EMF forms .view XMI files (nothing else)
org.example.rap
- IApplication
- WorkbenchAdvisor
- WorkbenchWindowAdvisor
- Perspective
- View which uses one of the ecore model using the registered .view model
Till now this is brings up a view based on the XMI view model.
But my final target application should be something similar to the "Makeit happen sample E3 application" running in a RAP mode over web.
- I mean particularly workspace, projects, emfstore(or cdo or any), editor (+ save mechanisms)
Can you provide me some pointers on how to proceed.
Regards,
Ram
|
|
|
|
|
|
|
Re: ECP - RAP editor and data binding via emfstore [message #1733660 is a reply to message #1733400] |
Mon, 30 May 2016 14:43   |
Eclipse User |
|
|
|
Hi Ram,
I set this up by compiling the code for the ecp and emfstore projects from the git repositories (there are other ways to set it up , but I like to be able to tweak the code and rerun quickly)
As an IDE I use the eclipse Oomph profile for Mars.2 (http://eclipsesource.com/blogs/2016/02/29/eclipsesource-oomph-profile-updated-to-mars-2/) since it has the required plugins (such as RAP tools for launching the application).
I checkout 'release 1.9.0' of the ecp project from git, and branch 'develop' from emfstore project.
I import all the projects from git.
I have a custom target and RAP launch script, which will hopefully be part of emfsttore project 1.8 RC2 release next week, they are the latest 2 attachements in bug report https://bugs.eclipse.org/bugs/show_bug.cgi?id=494651. The emfstore team will decide on the best place for these but you can put the launch script in org.eclipse.emf.ecp.releng project replacing the current launch script ecpwebemfstore.launch. I suggest putting the target file from the bug report in the _target project. Note that it was very recently updated to use eclipse neon milestones.
In windows->preferences->plugin developement-> target, choose the custom target. It can take a long time to load, be careful to check that it loads succesfully, clicking edit will usually make sure it is fully loaded in my experience.
Build the project (some projects, such as javafx modules, will not compile as they are not needed for RAP, tis is OK)
then running the launch script from 'run->run configurations' should run the start the application locally (again it may complain about some plugins not needed for RAP) . You may need to refresh the browser after a few seconds if it doesnt show the application immediately. It can also be deployed to tomcat with a bit of effort (I have documented the process at https://bugs.eclipse.org/bugs/show_bug.cgi?id=493073). any problems you can send me an email at neilswebmail@yahoo.co.uk.
Regards,
Neil
|
|
|
Re: ECP - RAP editor and data binding via emfstore [message #1733761 is a reply to message #1733660] |
Tue, 31 May 2016 09:40  |
Eclipse User |
|
|
|
Hello Neil,
Thanks a lot.
I'm able to get it working with the target and launch files.
The entry point "org.eclipse.emf.ecp.rap.viewapp" was the mistake. I had a custom one!
Using it as a git repository is a very good approach to get included with the bug fixes.
But I used the latest build from emf-store and ecp. 2016-05-30.
BTW: I used neon-rc2
Thank you for the tomcat deployment steps. If I find time I'll give a try.
In general, there were some issues and there are some questions which we shall discuss in a separate thread.
Regards,
Ram
|
|
|
Powered by
FUDForum. Page generated in 0.44344 seconds