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

Key: IDEA-12403
Type: New Feature New Feature
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Wi
Votes: 0
Watchers: 1
Operations

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

Automatically create fields when implementing interface

Created: 17 Apr 07 16:46   Updated: 24 May 07 18:36
Component/s: Editor. Intention Actions

Environment: all

Build: 6,180
Severity: Low


 Description  « Hide
i have inteface
interface Foo {
int getId();
void setName(String name);
}

i type "alt+enter" on interface name and click "implement inrterface" command
then i've got

public class FooImpl implements Foo {
public int getId() { return 0; }
public void setName(String name) {
}
}

and now it's hard to convert this methods to private fields with getters and setters

it would be great to have option in "Implement Inteface" dialog:
"try to reproduce fields for getters and setters"
with this option checked i'd get

public class FooImpl implements Foo {
private int id;
private String name;

public int getId() { return id; }
public void setName(String name) { this.name = name; }
}

see: http://www.intellij.net/forums/thread.jspa?messageID=5186253&



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