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

1 comment

Bryan Manwaring wrote:

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

Open View | Method Heriarchy. Ctrl+I (implement method works there).

--
Maxim Shafirov
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.