Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » using/customizing quickdiff for plugins
using/customizing quickdiff for plugins [message #250598] Tue, 08 June 2004 17: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 08:56 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
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: Sat Jul 13 18:55:19 GMT 2024

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

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

Back to the top