Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Statement-level IJavaElementDelta
Statement-level IJavaElementDelta [message #480740] Tue, 18 August 2009 11:23 Go to next message
Eric Bodden is currently offline Eric BoddenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi all.

I have a short question regarding IJavaElementDelta. Is there a way to get
a statement-level delta, i.e. a delta that not only tells me that the
internal definition of a method has changed but even which statements were
added/removed/moved/changed?

Best wishes,
Eric
Re: Statement-level IJavaElementDelta [message #480781 is a reply to message #480740] Tue, 18 August 2009 12:48 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Eric Bodden a écrit :
> I have a short question regarding IJavaElementDelta. Is there a way to
> get a statement-level delta, i.e. a delta that not only tells me that
> the internal definition of a method has changed but even which
> statements were added/removed/moved/changed?
There is no such fine grained delta.
--
Olivier
Re: Statement-level IJavaElementDelta [message #480791 is a reply to message #480781] Tue, 18 August 2009 13:52 Go to previous messageGo to next message
Eric Bodden is currently offline Eric BoddenFriend
Messages: 18
Registered: July 2009
Junior Member
That's what I feared. Thanks for confirming.
Re: Statement-level IJavaElementDelta [message #638629 is a reply to message #480740] Thu, 11 November 2010 20:06 Go to previous messageGo to next message
Raffi Khatchadourian is currently offline Raffi KhatchadourianFriend
Messages: 10
Registered: July 2009
Junior Member
Hi Eric,

Did you happen to figure out a way to do this?
Re: Statement-level IJavaElementDelta [message #638818 is a reply to message #638629] Fri, 12 November 2010 16:34 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
There is no way to get to the statement level using the java model.
You might want to look at the DOM API and compare the tree contents.
--
Olivier
Re: Statement-level IJavaElementDelta [message #638820 is a reply to message #638818] Fri, 12 November 2010 16:38 Go to previous messageGo to next message
Raffi Khatchadourian is currently offline Raffi KhatchadourianFriend
Messages: 10
Registered: July 2009
Junior Member
Thanks, that's what I thought as well. So I would just have to implement a tree comparison algorithm using the DOM API. I am wondering if its possible to actually extend the IJavaElementDelta to do this. Any thoughts on that? Thanks again!
Re: Statement-level IJavaElementDelta [message #638887 is a reply to message #638629] Fri, 12 November 2010 22:19 Go to previous message
Eric Bodden is currently offline Eric BoddenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi again.

No, sorry, actually we did not yet find any satisfactory solution to this. Sorry that I can't be of more help.

Eric
Previous Topic:GNUmakefile
Next Topic:Newbie - problem with getting a file in load of image
Goto Forum:
  


Current Time: Sun Dec 21 21:04:19 GMT 2014

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

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