Anonymous class intention available?

Answered

The IDE reliably offers me the lambda intention when I am adding a Listener to a  JavaFX property, but I never get an intention to implement the class as an inner class.

( For anyone interested, I actually find inner classes to be more powerful and flexible. I also find lambdas remove critical contextualizing information from the source (Listener type / argument type, method signatures....) which is great if you already are familiar with the Listeners available, their arguments, method signatures and meaning and the sight of your own code annoys you for some reason ..lol...but not so great if you're reading something someone else wrote ... or you wrote a few months ago ;) ).

What I am looking for is an intention that just straight up offers to create an inner class where it now offers me a lambda expression. Even offering me an anonymous class would be an improvement, since I find I can get from there to an inner class. 

Looked everywhere can't find anything except an intention to convert anonymous to inner. 

 

 

0
1 comment

Please submit a request at https://youtrack.jetbrains.com/issues/IDEA and provide a code with the use case.

0

Please sign in to leave a comment.