If automatic building is enabled in the workbench preferences, every time that you modify and save an SQLJ file, the workbench runs the SQLJ translator to translate SQLJ files into Java, and then builds the project.
If you build a project manually, the SQLJ translator runs, unless it has already run, and compiles the resulting Java files.