Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMF/EMF Forms] RCP Dependencies / Requirements(Which features are required to run a standalone E4 RCP product with EMF Forms)
[EMF/EMF Forms] RCP Dependencies / Requirements [message #1758364] Tue, 28 March 2017 06:47 Go to next message
Clemens Martin is currently offline Clemens MartinFriend
Messages: 5
Registered: March 2017
Junior Member
After trying several approaches, creating a feature based RCP E4 product with EMF and EMF Forms, I have to ask the following question:
Which features are required to run a standalone E4 RCP product with EMF Forms?

Creating an Eclipse 4 RCP product with EMF standalone (+JFace-Databinding) i sorted the following feature requirements in the .product config file:
      <feature id="org.eclipse.e4.rcp"/>
      <feature id="org.eclipse.ecf.core.feature"/>
      <feature id="org.eclipse.ecf.core.ssl.feature"/>
      <feature id="org.eclipse.ecf.filetransfer.feature"/>
      <feature id="org.eclipse.ecf.filetransfer.httpclient4.feature"/>
      <feature id="org.eclipse.ecf.filetransfer.httpclient4.ssl.feature"/>
      <feature id="org.eclipse.ecf.filetransfer.ssl.feature"/>
      <feature id="org.eclipse.emf.common"/>
      <feature id="org.eclipse.emf.databinding"/>
      <feature id="org.eclipse.emf.databinding.edit"/>
      <feature id="org.eclipse.emf.ecore"/>
      <feature id="org.eclipse.emf.edit"/>
      <feature id="org.eclipse.equinox.p2.user.ui"/>
      <feature id="org.eclipse.equinox.p2.extras.feature"/>
      <feature id="org.eclipse.equinox.p2.core.feature"/>
      <feature id="org.eclipse.equinox.p2.rcp.feature"/>
      <feature id="org.eclipse.help"/>
      <feature id="org.eclipse.platform"/>
      <feature id="org.eclipse.rcp"/>


Whenever i try to add EMF-Forms functionality to this product it ends up in unresolvable bundles in the exported standalone RCP product or much too many plugins (allmost a complete EMFForms IDE).
Launching inside the IDE is working fine, but like said above, i want only a minimalistic RCP product without unneeded features/plugins.

Basically i just want to use org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer in a RCP Part like:
org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer.INSTANCE.render(content, someObject)


Someone can help me?

Side note: I am using a property in my product configuration:
org.eclipse.update.reconcile=false


Thanks and Regards,
Clem
Re: [EMF/EMF Forms] RCP Dependencies / Requirements [message #1758387 is a reply to message #1758364] Tue, 28 March 2017 09:46 Go to previous messageGo to next message
Clemens Martin is currently offline Clemens MartinFriend
Messages: 5
Registered: March 2017
Junior Member
Trying to export the org.eclipse.emf.ecp.makeithappen.sample.product.e4 product doesn't work either!
I DO know it's plugin-based, but shouldn't at least a reference example work out of the box?

Same effect:
Launching inside the IDE -> OK
Launch from exported product: Unresolved requirement: Require-Bundle...

I would already be happy, if someone could tell me how to get this makeithappen-example "make it happen" Shocked

Thanks
Re: [EMF/EMF Forms] RCP Dependencies / Requirements [message #1758426 is a reply to message #1758387] Tue, 28 March 2017 14:45 Go to previous messageGo to next message
Eugen Neufeld is currently offline Eugen NeufeldFriend
Messages: 135
Registered: May 2015
Senior Member
Hi Clemens,
So I tried the exports.
My export of the e4 make it happen application is basically working. It fails because there are two version of batik in the platform and thus during the export the wrong one is used, if you pin batik to the 1.7.0 version it works.

I also created a feature based product:
<features>
<feature id="org.eclipse.emf.ecp.emfforms.runtime.feature" version="1.12.0.20170227-1527"/>
<feature id="org.eclipse.emf.ecp.makeithappen.feature" version="1.0.0.qualifier"/>
<feature id="org.eclipse.platform" version="4.6.3.v20170301-0400"/>
<feature id="org.eclipse.emf.ecore" version="2.12.0.v20160420-0247"/>
<feature id="org.eclipse.emf.ecore.edit" version="2.9.0.v20160526-0356"/>
<feature id="org.eclipse.emf.common" version="2.12.0.v20160420-0247"/>
<feature id="org.eclipse.emf.common.ui" version="2.11.0.v20160526-0356"/>
<feature id="org.eclipse.emf.edit" version="2.12.0.v20160526-0356"/>
<feature id="org.eclipse.emf.edit.ui" version="2.12.0.v20160526-0356"/>
<feature id="org.eclipse.emf.databinding" version="1.4.0.v20160526-0356"/>
<feature id="org.eclipse.emf.databinding.edit" version="1.4.0.v20160526-0356"/>
<feature id="org.eclipse.ecf.core.feature" version="1.3.0.v20160823-2221"/>
<feature id="org.eclipse.ecf.filetransfer.feature" version="3.13.2.v20160823-2221"/>
</features>
I had to create the MakeItHappen Feature to add the makeithappen model and application to the export.
I also did not use org.eclipse.update.reconcile=false.

I hope this helps.

Cheers,
Eugen



--
Eugen Neufeld

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: [EMF/EMF Forms] RCP Dependencies / Requirements [message #1758430 is a reply to message #1758426] Tue, 28 March 2017 15:33 Go to previous messageGo to next message
Clemens Martin is currently offline Clemens MartinFriend
Messages: 5
Registered: March 2017
Junior Member
Hi Eugen,

tried the same steps with the makeithappen example (create new feature with the model+edit plugin, replace product config to feature based)
Voila: Product export + launch is working Very Happy

Tried to put in the property in the product config again:
org.eclipse.update.reconcile = true

THAT IS THE SHOWSTOPPER!

Now anybody gonna tell me how to get rid of the following messages in the launched product logfile (that's the reason why put in update.reconsile=false):
!ENTRY org.eclipse.update.configurator 4 0 ...
!MESSAGE Could not install bundle plugins/com.ibm.icu_56.1.0.v201601250100.jar   A bundle is already installed with the name "com.ibm.icu" and version "56.1.0.v201601250100"...
...

for every plugin

And also this one at the very bottom of the logfile:
!ENTRY org.eclipse.equinox.ds 1 0
!MESSAGE Could not bind a reference of component EMFFormsViewService. The reference is: Reference[name = Provider, interface = org.eclipse.emf.ecp.view.spi.provider.IViewProvider, policy = dynamic, cardinality = 0..n, target = null, bind = addProvider, unbind = removeProvider]


But overall: Definitive the right way to the solution I was looking for. Now I'll try the same steps in my "minirpc"-called product.

THANKS!
Clem
Re: [EMF/EMF Forms] RCP Dependencies / Requirements [message #1758441 is a reply to message #1758430] Tue, 28 March 2017 17:04 Go to previous message
Clemens Martin is currently offline Clemens MartinFriend
Messages: 5
Registered: March 2017
Junior Member
So finally i am using this features in my custom RCP product:

<features>
      <feature id="my.xyz.feature"/>
      <feature id="org.eclipse.e4.rcp"/>
      <feature id="org.eclipse.ecf.core.feature"/>
      <feature id="org.eclipse.ecf.core.ssl.feature"/>
      <feature id="org.eclipse.ecf.filetransfer.feature"/>
      <feature id="org.eclipse.emf.common"/>
      <feature id="org.eclipse.emf.common.ui"/>
      <feature id="org.eclipse.emf.databinding"/>
      <feature id="org.eclipse.emf.databinding.edit"/>
      <feature id="org.eclipse.emf.ecore"/>
      <feature id="org.eclipse.emf.ecore.edit"/>
      <feature id="org.eclipse.emf.ecp.emfforms.runtime.feature"/>
      <feature id="org.eclipse.emf.edit"/>
      <feature id="org.eclipse.emf.edit.ui"/>
      <feature id="org.eclipse.equinox.p2.user.ui"/>
      <feature id="org.eclipse.equinox.p2.extras.feature"/>
      <feature id="org.eclipse.equinox.p2.core.feature"/>
      <feature id="org.eclipse.equinox.p2.rcp.feature"/>
      <feature id="org.eclipse.platform"/>
   </features>


With this approach the product config is "valid" (in Product config editor, top right tool button "Validate...") and RCP product export and launch is working.

Still wondering about the logfile messages:

  • org.eclipse.update.configurator...
  • org.eclipse.equinox.ds...

from my previous post

Regards,
Clemens
Previous Topic:[EMF Forms] integrate Buttons for operations
Next Topic: [EMF Forms] Multiple views of a model class with e4
Goto Forum:
  


Current Time: Tue Jun 19 01:20:34 GMT 2018

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

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

Back to the top