[英]How to open *.class files with decompiler by default in Eclipse?
When opening a *.class file in Eclipse, the default Class File Viewer
editor is used showing a not coder-friendly view of the class.在 Eclipse 中打开 *.class 文件时,使用默认
Class File Viewer
编辑器显示 ZADCBB142F2ED4F8EB402 的非编码器友好视图
Having several decompilers installed on my Eclipse instance, I can "manually" use any them to open my *.class file so it shows in the Class Decompiler Viewer
editor.在我的 Eclipse 实例上安装了几个反编译器后,我可以“手动”使用它们打开我的 *.class 文件,以便它显示在
Class Decompiler Viewer
编辑器中。
What I would like though is to change the default editor from Class File Viewer
to Class Decompiler Viewer
so when I open a *.class file (eg by double-clicking it in the Package Explorer
view or via the Open Type...
dialog) it opens directly in the right view. What I would like though is to change the default editor from
Class File Viewer
to Class Decompiler Viewer
so when I open a *.class file (eg by double-clicking it in the Package Explorer
view or via the Open Type...
dialog)它直接在右视图中打开。
At the moment *.class files are consistently opening in the Class File Viewer
editor regardless of my settings.目前 *.class 文件始终在
Class File Viewer
编辑器中打开,无论我的设置如何。 I have to go back to the Package Explorer
view, right-click the *.class file and select the desired decompiler explicitely in the Open Class With
option to get it open in the Class Decompiler Viewer
editor. I have to go back to the
Package Explorer
view, right-click the *.class file and select the desired decompiler explicitely in the Open Class With
option to get it open in the Class Decompiler Viewer
editor.
I have set the Class Decompiler Viewer
editor as the default one for *.class files, applied, restarted Eclipse even, but still all the *.class files I open are coming through the Class File Viewer
by default. I have set the
Class Decompiler Viewer
editor as the default one for *.class files, applied, restarted Eclipse even, but still all the *.class files I open are coming through the Class File Viewer
by default.
The decompiler preference also has an option to set himslef as the default editor of *.class files, but without success on my side:反编译器首选项还有一个选项可以将 himslef 设置为 *.class 文件的默认编辑器,但我这边没有成功:
Any idea of a solution to force the default *.class file editor to something else than the Class File Viewer
one?有什么解决方案可以将默认的 *.class 文件编辑器强制为
Class File Viewer
之外的其他东西吗? Am I missing something obvious in my settings?我是否在我的设置中遗漏了一些明显的东西?
In File Associations below " .class", you will find another " .class without source".在“ .class”下面的文件关联中,您会发现另一个“ .class without source”。 Set your decompiler as default in that.
将您的反编译器设置为默认值。 Class files should open in the decompiler now.
Class 文件现在应该在反编译器中打开。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.