Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » EMF Compare dialog in standalone RCP application e4
EMF Compare dialog in standalone RCP application e4 [message #1767258] Tue, 04 July 2017 09:16 Go to next message
Roman Zimmer is currently offline Roman ZimmerFriend
Messages: 27
Registered: November 2010
Junior Member
Hey @łl,

We are developing a RCP application based on e4. Currently, we have the requirement to display differences of our domain models and love to use EMF Compare for this. Unfortunately, I didn't find any information how to do this despite of a corresponding bug report. The component org.eclipse.emf.compare.ide.ui.e4 is merged a year ago, but I couldn't find the component via the update site nor any other way to download + install it.

Any help how to retrieve and use org.eclipse.emf.compare.ide.ui.e4 in our project is highly appreciated!

Thanks in advance,
Roman
Re: EMF Compare dialog in standalone RCP application e4 [message #1767322 is a reply to message #1767258] Tue, 04 July 2017 16:10 Go to previous messageGo to next message
Roman Zimmer is currently offline Roman ZimmerFriend
Messages: 27
Registered: November 2010
Junior Member
Found another bug report for Compare. I suppose, this should have been merged, too, as I wanted to use CompareUI.openCompareDialog() for displaying the differences... :-/
Re: EMF Compare dialog in standalone RCP application e4 [message #1767365 is a reply to message #1767258] Wed, 05 July 2017 09:41 Go to previous messageGo to next message
Stefan Dirix is currently offline Stefan DirixFriend
Messages: 3
Registered: September 2015
Junior Member
Hi Roman.

Executing EMFCompare in E4 is still a niche use case, so currently you have to do a a few steps manually to get it running.

First you need to be able to run Platform/Compare within E4 because EMFCompare depends on it. Since Bug #473847 is not fixed yet, you need to checkout the "org.eclipse.compare" bundle from Platform/Team yourself, integrate it in your build and apply the patch from Gerrit #57628.

Then you need, as you noticed, the "org.eclipse.emf.compare.ide.ui.e4" bundle. This bundle exchanges a workbench-dependent component EMFCompare uses with a workbench-independent one. As reported in Bug #514296 this bundle is currently not provided via an update site. You therefore need to checkout the bundle from EMFCompare yourself and integrate it in your build.

Once you have done this, you should be able to run the EMFCompare Dialog in your E4 application.

One more hint: you should set some preferences programmatically to avoid for example the popups in EMFCompare linking to preference pages you do not have in E4.

I hope this helps.

Best regards,
Stefan


--
Stefan Dirix

Get professional Eclipse developer support from EclipseSource (see http://eclipsesource.com/en/services/developer-support/)
Re: EMF Compare dialog in standalone RCP application e4 [message #1767456 is a reply to message #1767365] Thu, 06 July 2017 08:46 Go to previous message
Roman Zimmer is currently offline Roman ZimmerFriend
Messages: 27
Registered: November 2010
Junior Member
Hey Stefan,

thanks a lot for your advices! I hope all this will be integrated upstream some day... Nevertheless, with your help, I finally managed to get the compare dialog running in e4!

Essentially, it's working quiet good so far. I'm still struggling with the configuration and some functionality is throwing NPEs, but this is another topic ;)

Thanks again,
Roman
Previous Topic:Adding new Node in the StructureViewer
Next Topic:EMFCompare programatically for comparing Local History of a model
Goto Forum:
  


Current Time: Tue Sep 25 18:41:33 GMT 2018

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

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

Back to the top