Compare Example [message #328437] |
Sat, 24 May 2008 19:08  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02953 seconds