我正在使用org.eclipse.jdt.core.IMethod
並在接口上調用method.rename(newName, true, new NullProgressMonitor());
。Eclipse JDT重構方法在子類中編程失敗
它重構了接口方法,但未能重構其實現類方法。
例如:
interface Animal {
void eat(); // refactors here
}
class Dog implements Animal {
// fails to refactor this
void eat() {
}
}
請幫助!
謝謝。但沒有:(但發現一個備用(請參閱我的答案) – Shrikanth