Bug 21965 - [extract method] could guess method name
Summary: [extract method] could guess method name
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-26 12:34 EDT by Adam Kiezun CLA
Modified: 2006-06-12 03:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-07-26 12:34:38 EDT
in a fashion similar to bug 19930 where extract temp guesses temp name
extract method would guess it too
Comment 1 Jim Kingdon CLA 2003-03-12 11:08:21 EST
So if the code is
  x = 1 + 2;
  foo = 2 * x;
then the guess would be "getFoo"?

Or would the guess be the same as the containing method (provided the arguments
differ)?  This guess might come in handy if the next step is to inline
what had been left of the containing method.

Or is some other algorithm envisaged?