Adding a method to an interface
I have a coding task that keeps driving me nuts. Is there anyway to easily add a method to an abstract class or to an interface and have that method added to all of the implementing classes.
Currently, if an interface changes, I have been adding the method to the interface. Then I do a "find usages.." on the interface for the implementing classes. Then, one by one, I go through and use the "Implement" command (CTRL-I) to implement the methods.
Is there any way to refactor, or insert a method easily?
Thanks,
Bryan Manwaring
请先登录再写评论。
Bryan Manwaring wrote:
Open View | Method Heriarchy. Ctrl+I (implement method works there).
--
Maxim Shafirov
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"