Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DNU in Class Browser

56 views
Skip to first unread message

Andreas Wacknitz

unread,
May 19, 2013, 9:21:20 AM5/19/13
to
Hi all,

I got a DNU in Class Browser. When I select Method->Refactorings->Inline
Parameter-><parameter name>
from the menu I'll get
MethodRefactoringTool does not understand #inlineParameter:

This happens in a fresh Dolphin 6.1 Beta 2 image.
Does anybody already being hit by that and has a solution?

Best regards
Andreas

bruno.b...@gmail.com

unread,
May 19, 2013, 12:11:13 PM5/19/13
to
Hi,

Inline Parameter: Remove a parameter from the method, and adds an assignment at the beginning of the method. This can only be performed if all senders of the method have the same value for the parameter.

The quick fix to this is:
1- Go to CodeRefactoringTool, then select #inlineParameter: method.
2- Use the Refactoring to refactor CodeRefactoringTool class --> Refactoring>>Push Up

This will put #inlineParameter: in RefactoringTool class, so MethodRefactoringTool class will understand #inlineParameter:.

Regards,
Bruno

Andreas Wacknitz

unread,
May 20, 2013, 1:55:34 AM5/20/13
to
Am 19.05.13 18:11, schrieb bruno.b...@gmail.com:
Thanks Bruno,

that solved the DNU. Alas the refactoring itself doesn't do what I need.

Best regards,
Andreas
0 new messages