{"id":33,"date":"2009-02-22T22:24:33","date_gmt":"2009-02-22T22:24:33","guid":{"rendered":"http:\/\/andypalmer.com\/?p=33"},"modified":"2009-05-22T13:06:51","modified_gmt":"2009-05-22T13:06:51","slug":"installing-eclipse","status":"publish","type":"post","link":"https:\/\/andypalmer.com\/2009\/02\/installing-eclipse\/","title":{"rendered":"Installing Eclipse"},"content":{"rendered":"
I’ve just bought myself a netbook<\/a>, and following the example set by John Smart with his article on installing Eclipse<\/a>, I’ll document what I do with a clean install of Eclipse.<\/p>\n\n I download the Eclipse IDE for Java Developers. The download is less than half the size of the Java EE edition, and I can always add the extra plugins later (if needed) <\/p>\n I install the mercurial plugin<\/a>. There is a pattern that I use for pushing mercurial changes to other SCMs (eg. subversion) that I will describe in another post. I intend to use Ivy<\/a> for my dependency management, so I install IvyDE<\/a>. I then install the code quality plugins that John mentions, as well as the Metrics plugin. (the following links are the urls for the update sites)<\/p>\n I also install JUnitMax. This is a new plugin from Kent Beck that runs your unit tests after every save. It’s currently on paid beta, and I highly recommend it. Subscribe here<\/a>, it’s only $2\/month <\/p>\n\n I update the following templates in Java -> Code Style -> Code Templates <\/p>\n Method Body<\/span><\/strong><\/p>\n This evaluates to an empty (apart from the comment) method for void types, or Catch block body<\/span><\/strong><\/p>\nFirst Things First<\/h2>\n
Plug it in<\/h2>\n
\n
Templates<\/h2>\n
\r\n\/\/ ${todo} Auto-generated method stub\r\n${body_statement}\r\n<\/pre>\n
return null;<\/code>. I’ve already discussed my thoughts on returning null<\/a>, and I would rather my code failed if it hits an unimplemented method<\/abbr> rather than continue in a potentially unsafe manner. So, I change this to:<\/p>\n
throw new UnsupportedOperationException("TODO: Implement this method");<\/pre>\n
\/\/ ${todo} Auto-generated catch block\r\n${exception_var}.printStackTrace();<\/pre>\n