how to use extract method refactoring

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to use extract method refactoring

Jochen Riekhof
Refactorings are way cool in DolphinXP, but I can't get extractMethod to
work. I select a piece of code and select "Refactorings/Extract Method" in
the context menu. A little dialog pops up with the required parameters and a
method selector to enter. The OK button is dimmed. Now, I enter a selector,
but the ok button does not become enabled?!
What can I do?

Ciao

...Jochen


Reply | Threaded
Open this post in threaded view
|

Re: how to use extract method refactoring

John Brant
"Jochen Riekhof" <[hidden email]> wrote in message
news:3d63cd0c@tobjects....
> Refactorings are way cool in DolphinXP, but I can't get extractMethod to
> work. I select a piece of code and select "Refactorings/Extract Method" in
> the context menu. A little dialog pops up with the required parameters and
a
> method selector to enter. The OK button is dimmed. Now, I enter a
selector,
> but the ok button does not become enabled?!
> What can I do?

Most likely your problem is that your selector doesn't have the required
number of arguments. You need to enter a selector with the same number of
arguments as is listed in the parameter list. If you enter too few or too
many, the button will be disabled.


John Brant


Reply | Threaded
Open this post in threaded view
|

Re: how to use extract method refactoring

Jochen Riekhof
> Most likely your problem is that your selector doesn't have the required
> number of arguments. You need to enter a selector with the same number of
> arguments as is listed in the parameter list. If you enter too few or too
> many, the button will be disabled.

Oh yes,, thanks a lot! Should have known it myself, but thats how it is when
you finally can enjoy Smalltalk after a long day's work in Java and C++ ;-).

Ciao

...Jochen