Only run on-save handlers if running inside Eclipse.
Remove unnecessary refresh.
Reformat build.generated.xml.