In addition to generating the implementation code for the transformation, the transformation authoring framework also generates code to register the transformation with the Transformation Service.
You must have a .mapping file open, and the file must contain at least one map. You must save your changes to the mapping model; otherwise, the option to generate transformation code is not available.