Make Method Non-Static Refactoring

Is there some trick to enabling the Make Method Non-Static refactoring. Even
when the cursor is on a static method the menu option remains disabled in
build 209 for VS2003.
Thanks.


2 comments
Comment actions Permalink

Actually Make Method Non-Static works by moving the method into one of its
parameters. If there is no such parameters it's not enabled. It's somewhat
confusing and we will change this behaviour to give explanation to the user.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Is there some trick to enabling the Make Method Non-Static
refactoring. Even
when the cursor is on a static method the menu option remains disabled
in
build 209 for VS2003.
Thanks.



0
Comment actions Permalink

Thanks, I understand now
"Valentin Kipiatkov (JetBrains)" <valentin@jetbrains.com> wrote in message
news:3fdb29a69526c8c7b29b1153fe81@news.intellij.net...

Actually Make Method Non-Static works by moving the method into one of its
parameters. If there is no such parameters it's not enabled. It's somewhat
confusing and we will change this behaviour to give explanation to the
user.

>

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>
>> Is there some trick to enabling the Make Method Non-Static
>> refactoring. Even
>> when the cursor is on a static method the menu option remains disabled
>> in
>> build 209 for VS2003.
>> Thanks.
>



0

Please sign in to leave a comment.