History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-26649
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Sergey Shkredov
Reporter: Andrew Serebryansky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper

"Extract class from parameters" can reuse an existing class

Created: 06 Aug 06 18:51   Updated: 16 Jul 07 15:21
Component/s: Refactorings - Extract Class from Method Parameters
Fix Version/s: Future Versions
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 252
Old URL: http://www.intellij.net/tracker/resharper/viewSCR?publicId=26649


 Description  « Hide
I had a situation recently when I had two methods, not implementing the same member of an interface, which had the same parameter list. Now, I didn't expect that doing an "Extract Class..." would update the second method, and in fact, it did not.

However, when I did the "Extract Class..." on the second method, I wanted to be able to use the class created by the first "Extract Class...". There was no option to do this.

I suggest that such an option be created. If an exactly-appropriate class already exists, permit it to be used.

If there is only a similar class, then I don't know what you should do! For instance, if method 1 has parameters a-f, and method 2 has parameters a-h, it would be nice if you could first create one class with a-f, then, on the second method, add g and h.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.