Sergi Castillo

Sergi Castillo

Archives Posts

DZone weekly links #2

June 14th, 2008 by sergi

Here we come with the dZone weekly links:

Filed under Java having No Comments »

Archives Posts

DZone weekly links #1

June 6th, 2008 by sergi

Hi!

This is the first post of a new group where I pretend to share with us a couple of links I’ve found interesting in dZone.

In this post I’ll put all the links I have as interesting in my bookmarks, but the next posts will be weekly and I don’t assure you I’ll have posts every week :P

So, stop talking and let’s post the links:

Filed under Java having No Comments »

Archives Posts

Eclipse IDE improvements

February 19th, 2008 by sergi

Eclipse is the most IDE used in a java development team. In my current job we use Eclipse 3.1, yes I know isn’t the last version but is the version supports all the plugins we use without any testing.

When a new developer comes to the project he must install some plugins to work with it and develop like others, these plugins are:

  • Spring IDE: We use Spring, so this plugins is very useful to navigate through the beans configuration. By setting a project like a Spring Project you can access from your configuration file to your Java classes bean.
  • Hibernate Tools: which can generate hbm (hibernate mapping) files through a configuration file that contains the connection information and another file that you can tell what tables and fields you want to map.
  • Hibernate Synchronizer: You can generate the Java classes to access and/ or modify your data. Combined with Hibernate Tools you can easily generate your persistence layer in a few minutes.
  • CheckStyle: If you want a readable application in a more or less numerous development team, you must define a simple rules to follow when a developer is programming a class. A part from the nomenclature of the application’s architecture a developer must follow some basics to let the other team members read the code easily.

The benefits to use a plugins is basically short the development time and help the newcomers to integrate in the development team.

Another improvement you can do/teach to you team is give them a list of the main and useful shortcuts available in Eclipse, there are some I use during the day:

  • Ctrl + Shift + O: Organize imports. Adds or removes unused imports to Java classes.
  • Ctrl + Shift + T: Open type. Shows a new windows where you can type the name of the class, exactly or an approximation of it and you’ll get the class or classes in real time that contains the workspace or jar.
  • Ctrl + Shift + R: Open resource. Same as the above but doesn’t search in jars, it’s recommended for files, not for classes.
  • Ctrl + W: Close the active window. Nothing to add.
  • Alt + Shift + R: Rename a file and updates the references.
  • F3 or Ctrl + click on the class or variable or constant. Opens the declaration.
  • Ctrl + /: Comment the current line. If you select multiple lines, these lines will be commented.
  • Ctrl + H: Search.

Another improvement do you use? Recommendations?

Filed under Java having 1 Comment »