I had already blogged about the Code Templates - see "conn, ife, sop & try".
Jan Vervecken gives a useful example of Code Template in OTN: "nice Code Template for log statements".
You can define "sopcm" as the shortcut of the following code template:
System.out.println("Current Class: $theCurrentClass$ - Current Method: $theCurrentMethod$");as shown in the next figure:

and declare 2 variables theCurrentClass and theCurrentMethod of type curClass and curMethod respectively:

Then in the Code Editor, enter sopcm and press CTRL + ENTER
It will add the following code automatically (in this example, it was added in method getDepartmentsView1 of the class AppModuleImpl):
System.out.println("Current Class: AppModuleImpl - Current Method: getDepartmentsView1");