Extract Method Object : Diana 8.0M1

I have a code block that has multiple output values, so that when I try
the Extract Method refactoring I get the usual 'Cannot perform
refactoring. There are multiple output values' dialog.

So I try the Extract Method Object, which from the web page 'can be used
when you have, multiple return values in an extracted method, or too
many parameters passed to it'. But I get the very same 'Cannot perform
refactoring' dialog!

Am I expecting it to do something it doesn't?

N.

ps. it would be nice for the Extract Method to give you an option to
execute Extract Method Object directly if there are multiple outputs/inputs.

2 comments
Comment actions Permalink

Hello Nathan,

You are right! I am in progress right now to include multiple exit points
processing to Extract Method Object and yes, we are planning to suggest to
invoke extract method object after extract method failured ...


Thank you and please check next EAP builds

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

I have a code block that has multiple output values, so that when I
try the Extract Method refactoring I get the usual 'Cannot perform
refactoring. There are multiple output values' dialog.

So I try the Extract Method Object, which from the web page 'can be
used when you have, multiple return values in an extracted method, or
too many parameters passed to it'. But I get the very same 'Cannot
perform refactoring' dialog!

Am I expecting it to do something it doesn't?

N.

ps. it would be nice for the Extract Method to give you an option to
execute Extract Method Object directly if there are multiple
outputs/inputs.



0
Comment actions Permalink

Anna Kozlova wrote:

Hello Nathan,

You are right! I am in progress right now to include multiple exit
points processing to Extract Method Object and yes, we are planning to
suggest to invoke extract method object after extract method failured ...


Thank you and please check next EAP builds

---------------------
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


Thanks Anna, looking forward to trying it.

Cheers,
N.

0

Please sign in to leave a comment.