- Do one of the following:
- On the main menu, choose , or press Ctrl+ICtrl+I.
- Right-click the editor and choose Generate on the context menu, or press Alt+InsertControl N; Control Enter, and choose Implement Methods.
The Select Methods To Implement dialog appears, displaying the list of classes and interfaces with the methods that can be implemented.
- Select one or more methods to implement. For multiple selection, use CtrlControl and ShiftShift keys.
- If necessary, check the option Copy JavaDoc to insert JavaDoc comments from the implemented interface of abstract methods (if any).
- Click OK.
Note
File template responsible for implementing a method (Implemented method body) accepts predefined template variables from "File Header" (), e.g. ${USER}, ${DATE}, etc.
For example, consider the following file template:
#if ( $RETURN_TYPE != "void" )return $DEFAULT_RETURN_VALUE;#end // TODO ($USER, $DATE):To change the body of an implemented method, use File | Settings | File Templates.
Provided that an implemented interface contains two methods, this template expands into the following code:
@Override public void hunt() { // TODO (mio, 9/21/12): To change the body of an implemented method, use File | Settings | File Templates. } @Override public String sniff() { return null; // TODO (mio, 9/21/12): To change body of implemented methods use File | Settings | File Templates. }

