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

Key: IDEADEV-25870
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Peter Gromov
Reporter: Eugene Kirpichov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Ctrl-I could include unresolved methods, or a Generate action for that

Created: 17 Mar 08 14:36   Updated: 10 Apr 08 15:01
Component/s: Editor. Intention Actions
Fix Version/s: None

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

Build: 7,757


 Description  « Hide
Consider the following source:

<code>
class X {
public Object foo() { int y = doBar("a"); System.out.println("Bar done: " + y); return makeBaz(y, new HashSet<String,String>()); }
// (cursor is here)
}
</code>

When I press Ctrl-I (Implement methods) at the indicated point, it seems a very nice idea to me to include suggestions to implement int doBar(String arg) and Object makeBaz(int arg1, HashSet<String,String> arg2) with stubs.

Otherwise, if I do a lot of wishful thinking, I have to either write a lot of stubs by hand or press 'create method ....' on a lot of unresolved references.

If this is contradictory to your understanding of what Ctrl-I should do (maybe, only unimplemented methods from super?), I'd be as happy if there was an action 'unresolved members...' in the 'Generate..' menu (Alt-Ins).



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 17 Mar 08 21:07
Ctrl-I should not do that, but "Generate | Unresolved Members" sounds like a good idea.