Merged SWTUtil from master.