...
First check out the version of mortar used by your application via SVN mortar -> tags -> version of interest.
Then navigate to SAPBaseAction via Open Declaration and attach the source:
In the Source Attachment Configuration window click on the Workspace... button. Select the src directory within the mortar project you checked out above.
A number of useful session attributes are set via mortar. Your actions can access these session attributes with the following code:
...