Get your CodeRanch badge!*
The moose likes IDEs, Version Control and other tools and the fly likes trying eclipse/wsad - I miss IntelliJ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "trying eclipse/wsad - I miss IntelliJ" Watch "trying eclipse/wsad - I miss IntelliJ" New topic
Author

trying eclipse/wsad - I miss IntelliJ

paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20271
    ∞

I'm on a new gig and the company is using websphere. They got in the first copy of WSAD and I'm the lucky guy that gets to learn it.
I have about 45 minutes of experience with it so far and I already miss IntelliJ.
I created an EJB and added a method to the remote interface. When I typed in "throws RemoteException" it underlined it in red. I waited. IJ would pop up a thing telling me "press Alt-Enter to import" . WSAD didn't do that. So I right clicked. After cruising through some menus I selected something about inserting the import. It imported something else. I had to go through that menu three times before it imported the right thing. Then my statement was still red. Apparently, stuff stays red until you save the file. IJ would un-red as soon as all is well.
I had heard WSAD was better than IJ, but now I'm not so sure.
Are there some plug-ins I'm missing?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Well, about that one particular "import" thing; once Eclipse has figured out that you've named an unknown class, it will indeed offer you the chance to auto-import it. It does seem to take a bit longer to figure out that this is appropriate, though. Anyway, as soon as Eclipse figures out what's going on, you can get a menu of intention actions bt clicking on that little red "x in a circle" icon, one of which will be the import you want. There's probably a way to set up a keystroke for this, but I'm no expert.
In Eclipse 3 (which I'm using when I use Eclipse) Alt-Enter pops up the menu, just as in IntelliJ, although as I said, you seem to have to type more in Eclipse before it figures out what's going on.
WSAD is probably better in that there are more plug-ins to do tedious tasks -- deployment, packaging, etc. The one real weakness of IntelliJ is the very poorly-documented plug-in architecture. But as far as editing code -- I really can't see anyone trying both for any period of time and not preferring IntelliJ IDEA.


[Jess in Action][AskingGoodQuestions]
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
Originally posted by Ernest Friedman-Hill:
The one real weakness of IntelliJ is the very poorly-documented plug-in architecture. But as far as editing code -- I really can't see anyone trying both for any period of time and not preferring IntelliJ IDEA.

I've used both Eclipse and IDEA extensively. For me it's almost a tossup. The ability to set up perspectives and views in Eclipse is very nice. The refactoring support in IDEA is more extensive. The lint tool in IDEA is nice.
From a feature standpoint, and the general "works the way I expect it to work" standpoint, I agree, IDEA beats out Eclipse, but not by a large margin.
I prefer Eclipse, mostly because it's free (IDEA is now $500 list for a single user. Ouch; it's gone up.). Also, I've had severe problems with IDEA and memory management at two different sites (I think I was on various 3.0 versions up to 3.0.4 in both places), so much that it became unusable in one place.
Given the plugin situation and rapid pace of improvement shown by Eclipse, I think Eclipse has the best future.
-Jeff-


Books: Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
Originally posted by Ernest Friedman-Hill:
you can get a menu of intention actions bt clicking on that little red "x in a circle" icon, one of which will be the import you want. There's probably a way to set up a keystroke for this, but I'm no expert.

That's referred to as the Quick Fix button. The keystroke is Ctrl-1, analogous to Alt-Enter in IDEA (if my memory is correct). It works in a lot of contexts; for example, you can hit Ctrl-1 while on a local variable name and do an inplace rename.
-Jeff-
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
A question: when I used WSAD briefly, Eclipse 2.x was available but WSAD was based on Eclipse 1.0 (which was a half-complete IDE at that point). What version of Eclipse is WSAD up to?
-Jeff-
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Paul, with Eclipse and WSAD, ctrl-1 and ctrl-space are your best friends
Place the cursor right after "NotYetImportedClass" and press ctrl-space --> Eclipse will auto-import the class or provide a pop-up list of alternatives if the class name matches multiple classes in the project's classpath.
Ctrl-1 is a more generic, "quick fix" shortcut, which provides a context sensitive pop-up menu for things such as "Create a class", "Create an interface", etc.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

If you have a lot of things that you want to import at once, you can do ctrl-shift-O. That's the shortcut for "organize imports."


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Jeanne Boyarsky:
If you have a lot of things that you want to import at once, you can do ctrl-shift-O. That's the shortcut for "organize imports."
Thanks, Jeanne. You've fulfilled my day-to-day learning Eclipse shortcuts quota -- I hadn't learnt that one yet
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
My favorite, recently-learned Eclipse keystroke is Ctrl-hover+F2. Press the Ctrl key, then hold your mouse over a method call until you get the yellow hover code box. Release the ctrl key, then press F2.
You get a semi-sticky hover box that shows the contents of the target method. It provides scrollbars if needed, can be sized, and supports cut & paste. It disappears when you click outside it.
You get the Javadoc and method signature if you just do a hover+F2.
-Jeff-
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Jeanne Boyarsky:
If you have a lot of things that you want to import at once, you can do ctrl-shift-O. That's the shortcut for "organize imports."

And for a single import of the class under the cursor, use Ctrl-Shift-M. In contrast to Ctrl-Space, the cursor may be anywhere in the name; it will also replace a fully qualified name with an import.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Originally posted by Lasse Koskela:
Ctrl-1 is a more generic, "quick fix" shortcut, which provides a context sensitive pop-up menu for things such as "Create a class", "Create an interface", etc.

Actually, it's also the shortcut for "quick assist", which will be active when there is no error in the current line. It provides such helpfull things like "assign to new variable", "join declaration and assignment", "remove surrounding if" etc. pp.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
It's probably been a while since you last tried another editor Paul, or you'd remember that there's always a learning curve involved
I made the deliberate choice to move to Eclipse and remove JBuilder4 at the same time (wanted better XML etc. features and couldn't afford JBuilder9 at the time).
That way I forced myself to not go back to the well-known JBuilder environment when running into something I didn't yet know how to do in Eclipse, so I had to find out.
And indeed I'm still learning things to this day


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trying eclipse/wsad - I miss IntelliJ
 
Similar Threads
A question about import statements...
Spring Tool Suite
Working as part of a mixed Eclipse/IntelliJ team
IntelliJ remote debugging with websphere
Leaving IntelliJ for Eclipse