Added eclipse-resource selector
Fixed some bugs in the generator