-1

Is there any code could get for renaming method in java eclipse plugin for code re-factoring?

For instance, if want to change method name at one place , it may get changed at all other places.

visit http://pdplab.it.uom.gr/teaching/sunjava/eclipse-java.html

NoNaMe
  • 6,020
  • 30
  • 82
  • 110

1 Answers1

0

The starting point corresponding to Refactor >> Rename is org.eclipse.jdt.ui.actions.RenameAction. Start by looking at the package org.eclipse.jdt.core.refactoring.descriptors and the class org.eclipse.ltk.core.refactoring.Refactoring:

RefactoringContribution contribution =
RefactoringCore.getRefactoringContribution(IJavaRefactorings.RENAME_METHOD);
RenameJavaElementDescriptor descriptor =
(RenameJavaElementDescriptor) contribution.createDescriptor()
ioana
  • 43
  • 5