Create New Java Class

Create new Java Type

Hi all, could you please revert the change you made to create new Java classes? The current approach still feels like an extra step, and I'd really like choose which type of Java class I'm going to create in the 'New' screen, instead of later. It's like saying 'New Web Frontend File', in which brings you to a screen where you can choose between 'HTML, XHTML, GSP, JSP, PHP'.

I've noticed that my current workaround (when using IntelliJ 9, which I don't do often due to the other problems) is to create a new Java Class, type the name, press Enter, and then change the 'class' to 'enum' or 'interface'. Even this works faster than choosing what kind of Class to create from the dropdown, since it involves a strange series of keys. (cmd+n, type name, tab, down down. Why not at least give me some choice in this??

I now have the following in my 'new' screen:

Java Class  <-- use it at least 50 times a day
File <-- use it 10 times a day
Package <-- use it 10-20 times a day
HTML file <-- never used
XHTML file <-- never used
Singleton <-- WTF?
Actionscript class  <-- never used (strange that it's here, since I don't have flex enabled)
Actionscript interface <-- never used (strange that it's here, since I don't have flex enabled)
Mxml Component <-- never used (strange that it's here, since I don't have flex enabled)
Mxml Component for Flex 4 <-- never used (strange that it's here, since I don't have flex enabled)
PHP classes <-- never used
PHP file <-- never used
XSLT stylesheet <-- never used
GUI form <-- sometimes used
GUI dialog <-- sometimes used
Faces config <-- never used
Tapestry <-- never used
Spring <-- never used
Groovy stuff (x3)
Google Guice… <-- never used
Web Service  <-- never used
Web Service Client <-- used once

So, I have more than 20 items in my new screen, of which I use a maximum of 5, and you're crippling the one I use the most?? In my opinion, (but correct me if I'm wrong), IntelliJ is still a Java IDE. Therefore, I expect most people will use it for programming Java. So why make an extra dialog in here?? And what will be next? Being able to implement the interface immediately? Extend a class? Choose which methods to override from the superclass? Specify a different location in which package to create the file? Specify that it should actually be an inner class of some other class??

Thanks, Erik

1 comment
Comment actions Permalink

Hmm... I don't have an issue with the "new java class" dialog. I always do: new java class --> type in the class name --> tab --> type "in" for interface --> hit enter. Or type "en" for enum. I actually like it because I can just keep typing away at keyboard.

0

Please sign in to leave a comment.