Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Implementing A custom content compare/merge viewer
Implementing A custom content compare/merge viewer [message #326652] Thu, 27 March 2008 09:36 Go to next message
Eclipse UserFriend
Originally posted by: deeptisuri124.yahoo.com

hi,

I want to make a compare / merge editor in my plugin which resembles the
"Compare With" functionality provided by eclipse. The difference is that my
editor will take 2 objects as input rather than 2 files and the compare
windows will contain Labels ,TextBoxes and buttons rather than just text.

How can I achieve the same effect ? I would also like to know how eclipse
has implemented "Compare With" editor.

Thank You.
Re: Implementing A custom content compare/merge viewer [message #326682 is a reply to message #326652] Fri, 28 March 2008 09:09 Go to previous message
Eclipse UserFriend
Deepti,
Implementing what you want is not all that different from the files case
except that your compare inputs would not implement
IStreamContentAccessor. You will also want your ITypedElements to return
a custom type. You would then associate your contentMergeViewer with
your type and the compare framework would then know what merge viewer to
use when it encountered an input of your type.

Michael

P.S. You may fined the slides from this talk helpful

http://www.eclipsecon.org/2007/index.php?page=sub/&id=37 82

It talks mostly about comparing files but, as I said above, the non-file
case is similar.

Deepti wrote:
> hi,
>
> I want to make a compare / merge editor in my plugin which resembles the
> "Compare With" functionality provided by eclipse. The difference is that my
> editor will take 2 objects as input rather than 2 files and the compare
> windows will contain Labels ,TextBoxes and buttons rather than just text.
>
> How can I achieve the same effect ? I would also like to know how eclipse
> has implemented "Compare With" editor.
>
> Thank You.
>
>
Previous Topic:FileSystemImportWizard and the .metadata directory
Next Topic:Plugin Required-Bundle
Goto Forum:
  


Current Time: Wed Mar 19 03:33:50 EDT 2025

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

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

Back to the top