Setting up file associations in Eclipse

It appears that not to many people know this, and it isn't as hard as one might think. When we install the CFEclipse plug-in into Eclipse, it will set itself up for the associations that CFEclipse needs which is ColdFusion files. Which is fine if the user only wishes to edit source files, and by default Eclipse will then use the association from windows to display or edit any file association it doesn't know about. A post was made on another blog recently, where they want to do something like this. The solution that they used works, but it isn't something that I would follow.

The blog that discussed how to get around this can be found here. Quick Tip: explore folders in Windows Explorer from Eclipse "project" view

So how do we setup Eclipse to edit an image instead of displaying it using the Windows normal file association. It is simple just open up eclipse if you haven't already got it open, and then go to window->preferences and under the general section you will find this

general->editor->file associations

Here you can then add the file extension that you need to use in Eclipse itself. So in this example I am going to add .gif, .jpg to the list that is already there. At the bottom is associate editors, which I will then add gimp to by selecting the add button for that section a window will popup that will allow to me to choose an external program. From here I just select gimp to have it associated with the extensions I have just added.

Yes it might be a pain to some degree to slowly set this up, but rest assured you will never be using the windows explorer again when you have this done.