Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » Custom merge viewer(If HTML, then show SWT.Browser left and right)
Custom merge viewer [message #1264636] Wed, 05 March 2014 11:23 Go to next message
Thomas Laegler is currently offline Thomas LaeglerFriend
Messages: 4
Registered: February 2014
Junior Member
Hi everybody,

Im using EMF-Compare and made some customizations. Now i want to show a SWT.Browser, when the Diff is a certain Xhtml-Element. Which classes do I have to extend?

What I have until now:

  • a custom HtmlMergeViewerCreator implements IViewerCreator
  • a custom HtmlMergeViewer extends ContentMergeViewer
  • and a extension to extension-point in plugin.xml, which points to my HtmlMergeViewerCreator

When I compare two files, my custom merge viewer opens on the first Diff.
But when i navigate to a HTML Diff the default EMF Model Compare opens instead of my custom merge viewer. And I can't select my HTML Viewer

What is missing? Anybody knows? Every hint is appreciated!
Re: Custom merge viewer [message #1265749 is a reply to message #1264636] Thu, 06 March 2014 14:04 Go to previous message
Axel RICHARD is currently offline Axel RICHARDFriend
Messages: 30
Registered: September 2010
Location: France

I think you should add your own Accessor for Xhtml-Elements. In EMF Compare, Accessors allows to bind elements in the StructureMergeViewer (top panel) to the elements in the ContentMergeViewers (down panels).
The extension point is
You'll have to provide to this extension point a specialization of and a ranking. This ranking must be greater than the existing ones (> 15).
You can find examples of existing AccessorFactories here:
These AccessorFactories are used in the

Hope it can help you.


Axel Richard
Previous Topic:EMF compare support basic xml?
Next Topic:error occurred during: "Computing Model Differences"
Goto Forum:

Current Time: Fri Nov 27 02:59:29 GMT 2015

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

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