Some reader favorites:
EJB fundamentals and session beans
Create a scrollable virtual desktop in Swing
Web services test code generator
Klaus Berg has recently released a test-code generator for JUnit-based Web service clients. If you're developing Web services
using Axis2 and XMLBeans this wizard could turn your JUnit test client coding into a powerful code generation process. It
also has uses for those using GUI-based testing tools like soapUI.
| Memory Analysis in Eclipse |
| Enterprise AJAX - Transcend the Hype |
The great thing about Eclipse is that it's so feature rich. If you can't find a feature, then either you just haven't looked hard enough or there's a plug-in that adds it. The worst thing about Eclipse is also that it's so feature rich. The toolbars are crowded, the menus are congested, and the configuration dialogs remind me of the Minotaur's labyrinth (although configuration is much better in version 3.1). Even experienced Eclipse programmers are slow and clumsy users. I've looked over countless colleagues' shoulders and blurted out "Control-Shift-T" (open type) when seeing them struggling to find a class in the Eclipse navigation pane. And with a small conscious time investment, you too can stop fumbling around in Eclipse and become a hotkey showoff.
Proficiency in Eclipse is not only good for your own productivity (I know, contractors paid by the hour tend to favor text editors), but also for your CV. Since Eclipse is surfacing on many Java job descriptions these days, it has become a good buzz word to have on your CV. I put it on mine between POJO (plain-old Java object) and POJI (plain-old Java interface). More and more companies are moving to Eclipse since it's free and generally accepted by programmers (except for the few diehard IntelliJ and Emacs enthusiasts).
So that your CV is not all lies and/or to help increase your programming productivity, in this article, I give you a few Eclipse productivity tips. Note: If you're totally new to Eclipse and looking for a beginner's tutorial, please see Resources.
Using Eclipse with hotkey combinations can be like playing a video game. Mortal Combat particularly comes to mind. To be good at Mortal Combat, you must memorize a slew of game-pad sequences. For example, to perform the Sub-Zero Skeleton Rip on your enemy, you must do a Back, Forward, Forward, Down, X-button on the game control pad. Well, Eclipse is no different. The joystick in this case is any combination of Control, Alt, Shift, letters, numbers, and F-keys.
Let's go through my favorites in order of most frequently used. (Note: these are tested in Eclipse version 3.02 and up.)
A tip to go along with these first two combinations is in the Navigator view, accessed from the yellow double-arrowed Link With Editor icon. This will make the file you open appear in the navigator hierarchy, which is often good orientation information. Turn it off if things get too slow.
Other hotkeys are listed on the menus. You can view a list of all keys by pressing Control-Shift-L (since version 3.1). Press Control-Shift-L a second time and it will take you into the Keys Preferences dialog where you can customize the key bindings. I welcome your Eclipse tips in the Talkback section.
I'll conclude with a few related tips that come to mind:
Lock the Console window: In the Console view (Window, then Show View, then Other, then Basic, then Console), try the scroll lock icon to keep console output from slipping out of view.
Use the Ant view: In my Java or Debug perspective, I like to have the Ant view also showing so I can quickly run Ant tasks. Find this at Window,
then Show View, then Other, then Ant. Then just place the view in a corner of the screen. Add build.xml files to it using the Add Buildfiles icon. Version 3.1 even has support for debugging Ant scripts!
Auto-iterate over a collection: for + Control-Space: If you didn't know already, Control-Space is auto completion. In Eclipse, you can auto-complete constructs too. In the scope of an array or a collection, try typing for (without a trailing space) and then pressing Control-Space. Eclipse will ask you which collection you'd like to iterate over and write the loop code for you!
Use the Hierarchical layout: The default layout (Flat) in the Package Explorer view distracts me with its full package names in a navigation tree. I like the package/file system view of my sources much better, which is called the Hierarchical layout in Eclipse. Switch to this in the Package Explorer view by clicking on the black down-arrow icon, then select Layout, then Hierarchical.
| Subject | Replies |
Last post
|
|
By JavaWorld |
2 |
10/05/06 10:28 AM
by Anonymous |
|
By vonKinder |
1 |
10/05/06 06:39 AM
by Anonymous |
|
By Sam Brodkin |
0 |
10/05/06 06:04 AM
by Anonymous |
|
By Christopher Judd |
3 |
10/05/06 06:04 AM
by Anonymous |
|
By heffel |
0 |
10/05/06 03:35 AM
by Anonymous |
|
By Jitendra |
2 |
10/04/06 10:09 AM
by Anonymous |
|
By Anonymous |
10 |
03/02/06 10:04 AM
by Anonymous |