Reputation: 8441
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.
Upvotes: 1
Views: 1739
Reputation: 29139
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.
Upvotes: 2
Reputation: 793
I'm assuming you get Open With for other file types, right?
My guess is that one of your plugins is causing the issue. I get an "Open With" when I right click on .class files. I can also add/remove different editors from its file association.
I'm using Eclipse 3.7.1
Upvotes: 0