Hi Guys!

this is a sample of a mega replace using regular expressions in eclipse:

find: \(\) \{ return (.+)\;

replace: \(String $1\) \ { this.$1 = $1;

see in action

before:

public void setserie() { return serie; }

public void setlote() { return lote; }

public void setlocation() { return location; }

after:

public void setserie(String serie)  { this.serie = serie; }

public void setlote(String lote)  { this.lote = lote; }

public void setlocation(String location)  { this.location = location; }

Facebooktwitterredditpinterestlinkedinmail