You can insert an image into a Mathematica notebook like shown in the picture, but you can't do that in eclipse.
The code you linked to is not JSP code. It is Wolfram Language code.
To use an image in your code, you generally first have to import it. In the Wolfram language that's just using the Import function:
http://reference.wolfram.com/language/ref/Import.html