Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Compare Example
Compare Example [message #328437] Sat, 24 May 2008 19:08 Go to next message
Eclipse UserFriend
I'm trying to implement compare support for a custom content type. The
content type is structured, so I've figured out how to add an extension
for the org.eclipse.compare.structureCreators extension point. The
IStructureCreator works, i.e. the upper part of the CompareEditor is correctly
displaying the hierarchy of all the changes.
The problem I have now is that the lower part of the compare editor (the
part having two sides, left and right, showing the differences) is
still text based. I'd like to show a custom viewer for the left / right
side, let's say a tree viewer. Does anybody have an example how to achieve
that?
Simon
Re: Compare Example [message #328462 is a reply to message #328437] Mon, 26 May 2008 02:51 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------080706080204050608090908
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Simon,

In EMF Compare, we chose to extend both
org.eclipse.compare.structuremergeviewers (upper part, as you found out
already) and org.eclipse.compare.contentmergeviewers (lower part)
extension points. I think extending the latter is the only way of having
your own custom viewer displayed for the lower right / left viewers of
the compare viewer.

You could take a look at how we achieved this within
org.eclipse.emf.compare.ui ...

Cheers,

Laurent Goubet
Obeo

cocoa@gmx.ch a
Previous Topic:FileBufferModelManager issue with editors
Next Topic:Very fast Job leaves behind two entries in progress viewer
Goto Forum:
  


Current Time: Wed Apr 30 06:26:25 EDT 2025

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

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

Back to the top