Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Implementing own viewer for EMF Compare(Implementing own viewer for EMF Compare)
Implementing own viewer for EMF Compare [message #1746666] Wed, 02 November 2016 16:23 Go to next message
Conor O'Mahony is currently offline Conor O'MahonyFriend
Messages: 27
Registered: August 2016
Junior Member
Hi,

Given the answers in the following forum topics:
https://www.eclipse.org/forums/index.php/t/1080651/
https://www.eclipse.org/forums/index.php/t/1079372/

it looks like there is no easy way to extend/configure the EMFCompareStructureMergeViewer from the org.eclipse.emf.compare.ide.ui plugin, to remove buttons from the toolbar, etc.

Instead of trying to deconstruct EMFCompareStructureMergeViewer to create our own viewer, we want to remove the dependency on the org.eclipse.emf.compare.ide.ui plugin in our RCP application and implement our own structure and content viewer.

Are there any guidelines or minimal implementation already for this or is the the org.eclipse.emf.compare.ide.ui plugin the best example to use...?

Many thanks,
Conor
Re: Implementing own viewer for EMF Compare [message #1746909 is a reply to message #1746666] Mon, 07 November 2016 15:23 Go to previous messageGo to next message
Conor O'Mahony is currently offline Conor O'MahonyFriend
Messages: 27
Registered: August 2016
Junior Member
More specifically about the above:

If we have a Comparison object containing the result of the comparison between our two model objects, and we want to display this through the eclipse Compare UI (without relying on org.eclipse.emf.compare.ide.ui and EMFCompareStructureMergeViewer.)

The simplest entry point (without contributing to org.eclipse.compare.structure/contentMergeViewers) - is to extend org.eclipse.compare.CompareEditorInput and override createContents() to create a viewer.

From here though it looks like a lot of the implementation for what we could use to display our own viewer resides in the ide plugin, rather than in the rcp plugin?
For example, the implementations of IEMFCompareConfiguration, ContentMergeViewer, etc, are in the ide plugin.

Is there any more info on using the emf compare rcp plugins to put together our own viewers?


Re: Implementing own viewer for EMF Compare [message #1746919 is a reply to message #1746909] Mon, 07 November 2016 16:43 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1858
Registered: July 2009
Senior Member
Hi Conor,

The decoupling we have done between ide and rcp is not "final" and we might very well be able to pull some things out and into the rcp plugin if you think it is possible. The main issue here is that we do not have an rcp use case for the emf compare structure and content viewers yet (iirc, the core content and structure viewers from the platform compare plugin have a hard dependancy on ide.ui).

If you need things in the rcp plugin, do not hesitate to try and pull them out to see if it is at all doable, then push this as a gerrit review for us to include. We'll gladly review any change request and help with finalizing it if necessary. There'll likely be a need to preserve the "current" APIs but that can probably be done without too much trouble.

Laurent Goubet
Obeo
Previous Topic:ComparisonEditorInput vs. ComparisonScopeEditorInput
Next Topic:Showing remote changes on the left
Goto Forum:
  


Current Time: Tue Sep 18 16:17:35 GMT 2018

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

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

Back to the top