Tip for Viewing Images in Eclipse

February 07, 2007

Here's a quick tip for those using Eclipse / CFEclipse, and would like to view images in your project from within eclipse.

Go to Window » Preferences in the Eclipse menu. Then expand General » Editors and click on File Associations.

This dialog lets you tell eclipse which editors should be used for a specific file name or file extension. Add a file type for *.jpg then click the Add button on the bottom for Associated Editors, and select Internal Web Browser.

You can repeat the steps for other file types such as png and gif.

In addition you can also add external editors for the image such as Photoshop, or whatever.

Like this? Follow me ↯

You might also like:

6 people found this page useful, what do you think?


I added a simple plugin called QuickImage which is nothing special but opens an image viewer within Eclipse (and can let you view thumbnails of an images directory).
What a damn good tip, Pete. Thanks!
Rob Rohan has a nice image viewer that he built to go along with the Afae Editor: http://robrohan.com/projects/afae/
Great tip! Thanks!
Tip for csv and xls files... Same concept, add extentions, then have eclipse open as internal browser. I had to switch off a message that would ask to open or save file. Works awesome.
Hi Pete, Many thanks for this tip. I use Eclipse exclusively for all of my web development tasks so finding out handy hints like this for when working within the workbench is great. Many thanks Ethan Cane Web Developer

Foundeo Inc.