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

Key: IDEA-15159
Type: New Feature New Feature
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Vaclav Pech
Votes: 0
Watchers: 1
Operations

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

Crete interface option when Alt-Enter on a non-existant class instantiation

Created: 20 Sep 07 18:40   Updated: 21 Sep 07 16:30
Component/s: Refactoring

File Attachments: None
Image Attachments:

1. createInterface1.JPG
(38 kb)

2. createInterface2.JPG
(33 kb)

Build: 7,274


 Description  « Hide
I'd like to be able to create an interface in the code as shown in the screen-shot and immediately construct an anonymous inner class out of it, but I'm only given options to create a class or an inner class.
The image 1 shows the situation, image 2 shows the desired result, which, however, must currently be achieved manually.

 All   Comments   Work Log   Change History      Sort Order:
Eugene Vigdorchik - 20 Sep 07 21:21
This fix will not only create an interface, but add an anonymous class that is IMO confusing.

Vaclav Pech - 20 Sep 07 21:28
OK, no necessarily we have to create the anonymous class, but at least I'd like to be able to create the interface.

Eugene Vigdorchik - 21 Sep 07 15:17
I would put it the other way. On 'new Smth()' there should be an intention to create anonymous class. It should work on unresolved references as well. After creating anonymous class, Create Interface should become available.

Vaclav Pech - 21 Sep 07 16:30
Yes, that might be actually a better way.