|
Re: how to use jdt for batch rename [message #648982 is a reply to message #648915] |
Sun, 16 January 2011 23:11  |
Eclipse User |
|
|
|
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. "
|
|
|
Powered by
FUDForum. Page generated in 0.09322 seconds