I installed a very useful decompiler plugin for Eclipse. It’s great, but like the standard class viewer in Eclipse, it only solves half of the problem: viewing the source of the classes.
When you go to File Associations and select the decompiler plugin as the viewer for .class, it decompiles all class files whether I have the source attached or not. If I use the standard Class viewer in Eclipse, the decompiler is never called. Right-clicking on the .class file doesn’t allow you to select which viewer to use, as there isn’t an “Open With” menu item.
Is there a way to enable the “Open With” context menu for .class files so I can select which plugin to use?
EDIT: I am using Indigo SR1, and this seems to happen only to .class files in a jar on the classpath. I get the “Open With” context menu for .class files that have been compiled from the project’s source.
The .class entries you see in the project explorer for classes in jars aren’t really files, so standard Eclipse file association doesn’t work. There isn’t anything you can do to make this action appear.
I recommend that you contact the developers of this decompiler plugin and explain your usecase. It will take work from the decompiler plugin developers and possible Eclipse JDT team you to get the feature that you are looking for.