Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Compare Example
Compare Example [message #328437] Sat, 24 May 2008 23:08 Go to next message
Alfredo Aldundi is currently offline Alfredo AldundiFriend
Messages: 38
Registered: July 2009
Member
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 06:51 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
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: Sun Oct 06 14:44:14 GMT 2024

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

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

Back to the top