Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Useful tips for Eclipse

http://benpryor.com/blog/index.php?/archives/4-Top - 10 - Tips - For - New - Eclipse - Users.html

An interesting link to hide the jar files from the left section of the files in the Eclipse IDE.
http://raibledesigns.com/page/rd?anchor=eclipse_tips

Don't forget to turn on Eclipse's memory monitor, use Window -> Preferences -> General -> Show Heap Status.

Use Eclipse Short Cuts: http://eclipse-tools.sourceforge.net/shortcuts.html
Most important shortcuts

  1. CTRL SHIFT R for finding resources!
  2. CTRL H for finding text in files

...

Original source: http://www.ryanlowe.ca/blog/archives/000386.php

...

Tuning Eclipse

For more on tuning Eclipse JVM heap size, you can refer to this IBM article : http://www-128.ibm.com/developerworks/websphere/library/techarticles/0204_searle/searle.html

...

Using local XSD's when no internet connection is available

...

Here is a screen-copy of my setting of this feature which is unused by default

How to use Regular Expression for Search & Replace in Eclipse ?

When it comes to large changes, hand-coding is tedious and error prone. Using Eclipse regexp in S/R may then be the way. But be carefull, it takes a man to do an error and a machine to transform it in a cataclysm.

Here is an example of work done in OFBiz with S/R regexp

You don't need anything else than Eclipse 3.4+ version. The feature itself uses the standard java regular expressions and is actually fairly simple to understand. I would recommend to have a go at regular expressions before trying that feature. For instance, you can try http://www.gskinner.com/RegExr/Image Added or http://www.regextester.comImage Added to test the results. Another great read is also: http://java.sun.com/developer/technicalArticles/releases/1.4regexImage Added
Be aware that there are different types of regexp. So not all commands may work (luckily, eclipse displays the available commands on the input dialog)

Btw, a great one I use quite often is this:

Code Block
<TAG\b[^>]*>(.*?)</TAG>

It'll grab the start and ending ending of a specified html tag. You can then use the select the inner element using $1 (smile)

You may use these plugins Bastian Bergerhoff's Brosinski's to help your work.