Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » using/customizing quickdiff for plugins
using/customizing quickdiff for plugins [message #250598] Tue, 08 June 2004 13:23 Go to next message
Eclipse UserFriend
Originally posted by: e0102799.student.tuwien.ac.at

Hi folks,

I want to develop a plugin based on the nice quick diff
functionality in eclipse. But quick diff is like a heap of
many classes and interfaces where i find it hard to
understand their coherence.

-how can you "access" the content displayed by quickdiff in
the sidebar?(i want to save this "codepieces" in a file)

-is it possible to change the UI elements of the quickdiff
"popup"? and is it possible to add some UI elements like
buttons or something like that.

-generally i would be very glad if you could show me some
code examples concerning a "reuse" of quickdiff for a
plugin or an own programm.


i've already digged my way through some compare classes but
it didn't work out...

thanks in advance!

christoph
Re: using/customizing quickdiff for plugins [message #250847 is a reply to message #250598] Wed, 09 June 2004 04:56 Go to previous message
Eclipse UserFriend
Christoph Radl wrote:
> I want to develop a plugin based on the nice quick diff
> functionality in eclipse. But quick diff is like a heap of
> many classes and interfaces where i find it hard to
> understand their coherence.
>
> -how can you "access" the content displayed by quickdiff in
> the sidebar?(i want to save this "codepieces" in a file)

Not directly. As a starting point, you should look at ChangeRulerColumn
in the org.eclipse.jface.text plug-in to see how it gets the ILineDiffer
instance for its editor. You can then get diff information
(ILineDiffInfo) from the ILineDiffer.

> -is it possible to change the UI elements of the quickdiff
> "popup"? and is it possible to add some UI elements like
> buttons or something like that.

If you have your own editor, this is possible. You can create your own
LineChangeHover implementation, where you can also override
getHoverControlCreator.

Return your custom LineChangeHover from your overridden
AbstractDecoratedTextViewer.createChangeHover method.

> -generally i would be very glad if you could show me some
> code examples concerning a "reuse" of quickdiff for a
> plugin or an own programm.

See the above classes.

HTH, tom
Previous Topic:Tracking the insertion point in an editor
Next Topic:message to view
Goto Forum:
  


Current Time: Wed Apr 30 17:44:11 EDT 2025

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

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

Back to the top