Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » how to use jdt for batch rename
how to use jdt for batch rename [message #648915] Sat, 15 January 2011 13:13 Go to next message
chinese boy is currently offline chinese boyFriend
Messages: 1
Registered: January 2011
Location: beijing
Junior Member
I want to rename java package name batchly without use UI,can anyone expalin the steps using jdt?
Re: how to use jdt for batch rename [message #648982 is a reply to message #648915] Mon, 17 January 2011 04:11 Go to previous message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 545
Registered: July 2009
Senior Member
On 1/15/2011 6:43 PM, galebo@163.com wrote:
> I want to rename java package name batchly without use UI,can anyone
> expalin the steps using jdt?
I am not sure what is your use case, but maybe Scripting of refactorings
may help you

Quoting from JDT Tips and Tricks document
( http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. jdt.doc.user/tips/jdt_tips.html)

"Most of the refactorings offered by JDT can not only be executed
interactively, but also by a refactoring script.

Create a refactoring script from the refactoring history using Refactor
> Create Script....

A refactoring script can then be applied later on an arbitrary workspace
using Refactor > Apply Script....

Such refactoring scripts can be used in different scenarios such as
automatic fixing of breaking API changes between software layers or
providing patches with rich semantics. "
Previous Topic:Change Print Preferences?
Next Topic: selection does not contain main type - Java Spring
Goto Forum:
  


Current Time: Fri Nov 28 00:42:08 GMT 2014

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

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