Suggestion: Copy method to interface

Hi,

When defining a method in a class that implements one or more
interfaces, i would like to be able to add the method signature to one
of the implemented interfaces. So like the extract interface function,
but only one method / property and as target an existing interface. It
would be great if comments could be preserved as well.

For me this happens frequently and might be interesting to automate.

Bye,

Ward

1 comment
Comment actions Permalink

Hello Ward,

I think this is what 'Pull Up' refactoring is intended for. It is planned
for the 2.0 version.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

When defining a method in a class that implements one or more
interfaces, i would like to be able to add the method signature to one
of the implemented interfaces. So like the extract interface function,
but only one method / property and as target an existing interface. It
would be great if comments could be preserved as well.

For me this happens frequently and might be interesting to automate.

Bye,

Ward



0

Please sign in to leave a comment.