I figured it out. This article gave me the answer.
Creating Java Projects for Agentry Java API Development - Developer - SAP Library
I made the mistake of trying to import the SAPWM source code by importing an existing project into the Eclipse Workspace instead of creating a new Java Project.
I also needed to add the SAPWM-x.x.x.x.jar library to the project.
Then it worked.