Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » TextEdit
TextEdit [message #259292] Wed, 01 April 2009 23:14 Go to next message
Eclipse UserFriend
Can I get information such as number of changed lines and names of changed
methods before a TextEdit(from refactoring for example) is applied.

Any suggestions?
Re: TextEdit [message #259295 is a reply to message #259292] Thu, 02 April 2009 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Liming Zhao wrote:
> Can I get information such as number of changed lines and names of
> changed methods before a TextEdit(from refactoring for example) is
> applied.
A TextEdit has no clue what a method is. Try
org.eclipse.text.edits.TextEdit.getCoverage(TextEdit[])

Dani
>
> Any suggestions?
>
Re: TextEdit [message #259325 is a reply to message #259295] Sat, 04 April 2009 09:31 Go to previous message
Eclipse UserFriend
Thanks for the help! That is a great idea. I can get offset and start
information - still need to translate it into higher level line metric and
method info...thought about associate it with document but how about
multiple edit like move, delete happen at same time...
Previous Topic:annotationProcessorFactory extension and @Inherited annotations
Next Topic:Workspace search problem
Goto Forum:
  


Current Time: Fri Apr 18 07:28:44 EDT 2025

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

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

Back to the top