Excavator was hoisting an electric motor in place to be bolted by injured employee. Excavator operator shirt sleeve accidentally bumped swing joy stick after EE released the hydraulic lockout lever causing motor to swing and hit employee against side of screen. Employee was conscious entire time. EMS was called and employee was conscious when taken by EMS to hospital.