简体   繁体   English

我如何找出某些Eclipse元素的来源?

[英]How do I find out where is the source for some Eclipse element?

I want to modify some code in the Eclipse JDT itself (In the "Debug Configurations" Dialog). 我想在Eclipse JDT本身中修改一些代码(在“调试配置”对话框中)。 I know how I can download the sources using CVS and all, but I wonder: what is the easiest way to find which packages I should download? 我知道如何使用CVS和所有工具下载源,但是我想知道:找到应该下载哪些软件包的最简单方法是什么?

I guess I can guess that that particular element is, say, in the org.eclipse.jdt.debug package. 我猜我可以猜到该特定元素位于org.eclipse.jdt.debug包中。 But, is there a more "scientific" way to do that? 但是,有没有更“科学”的方式来做到这一点? Say, maybe a plug-in that lets me click on any widget in the Eclipse user interface and it will tell me what's the class behind it? 说,也许是一个插件,它可以让我单击Eclipse用户界面中的任何小部件,并告诉我其背后的类是什么?

You need the Plugin Spy. 您需要插件间谍。 A very handy tool which shows you the implementing class (and plugin/JAR) of any UI element in Eclipse. 一个非常方便的工具,向您显示Eclipse中任何UI元素的实现类(和插件/ JAR)。 This article explains how to use the plugin spy and the sources. 本文介绍了如何使用插件间谍和源代码。

When downloading Eclipse, get the "Eclipse SDK" package. 下载Eclipse时,获取“ Eclipse SDK”软件包。 It contains all the sources as JARs which you can browse or even import (as stated in the article above). 它包含所有JAR来源,您可以浏览甚至导入(如以上文章中所述)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我如何找到Eclipse正在使用的JDK版本? - How do i find out the JDK version Eclipse is using? 如何找出Eclipse路径变量或字符串变量(`$ {some_var}`)的值? - How can I find out the value of an Eclipse path variable or string variable ( `${some_var}` )? Eclipse,Java项目-如何添加源文件夹,其中文件夹名称是软件包名称的一部分? - Eclipse, Java project - How do I add a source folder where the folder name is part of the package name? 如何将源代码导入eclipse - How do i import a source code into eclipse 在哪里可以找到CVS或Subversion中的蚀源? - Where to find eclipse source that was in cvs or is in subversion? 我如何找出为什么Eclipse陷入无休止的构建周期? - How do I find out why Eclipse is stuck in an endless build cycle? 如何在 Eclipse 中找到偏好页面的偏好页面 ID? - How do I find out the preference page ID of a preference page in Eclipse? 在哪里可以找到Eclipse JavaServer Faces配置编辑器面板? - Where do I find the Eclipse JavaServer Faces config editor palette? 在哪里可以找到Eclipse中leiningen-projects的导入向导? - Where do I find the import wizard for leiningen-projects in eclipse? 我在哪里可以找到关于我的日食有什么问题的信息? - Where do I find information about what is wrong with my eclipse?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM