Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Is there a widget to display diffs for ASTNodes?
Is there a widget to display diffs for ASTNodes? [message #257251] Thu, 06 November 2008 14:03 Go to next message
Eclipse UserFriend
Originally posted by: myawn.ebay.com

I'd like to be able to display a diff dialog for specific ASTNodes to a
developer, allowing them to choose one vs. the other to be kept. Is
there a widget (either standard SWT/Eclipse or from somewhere else) that
provides this?

I'm looking essentially for side-by-side display of two equivalent
ASTnodes (ex, two MethodDeclarations, or two ClassInstanceCreation
statements), and some sort of marker of differences (color coding,
indicators in margin -- whatever).

There will be a simple either-or selection, I'm not trying to do some
sort of merge where the user might preserve portions of both.

Currently I'm building a dialog with side-by-side JFace SourceViewer
components, which doesn't give me any way (that I'm aware of) to
highlight what is different between the two.

Thanks,
Mike
Re: Is there a widget to display diffs for ASTNodes? [message #257320 is a reply to message #257251] Tue, 11 November 2008 10:39 Go to previous message
Eclipse UserFriend
Mike Yawn wrote:
> I'd like to be able to display a diff dialog for specific ASTNodes to
> a developer, allowing them to choose one vs. the other to be kept. Is
> there a widget (either standard SWT/Eclipse or from somewhere else)
> that provides this?
Nope.

Dani
>
> I'm looking essentially for side-by-side display of two equivalent
> ASTnodes (ex, two MethodDeclarations, or two ClassInstanceCreation
> statements), and some sort of marker of differences (color coding,
> indicators in margin -- whatever).
>
> There will be a simple either-or selection, I'm not trying to do some
> sort of merge where the user might preserve portions of both.
>
> Currently I'm building a dialog with side-by-side JFace SourceViewer
> components, which doesn't give me any way (that I'm aware of) to
> highlight what is different between the two.
>
> Thanks,
> Mike
Previous Topic:java source code formatting
Next Topic:disable line wrapping in formatter
Goto Forum:
  


Current Time: Tue Apr 29 02:44:08 EDT 2025

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

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

Back to the top