3

我正在使用 Eclipse 哪个版本如下:


面向 Web 开发人员的 Eclipse Java EE IDE。

Version:   Indigo   Service   Release   1 
Build id:   20110916-0149 

它包括一个 XML 编辑器插件,我的问题是:XML 编辑器的源代码在哪里?
谁能给我一个获取 XML 编辑器源代码的 URL?

4

3 回答 3

5

每当您对 Eclipse 中插件的来源有疑问时,您可以使用 Eclipse 中一个鲜为人知的隐藏功能,称为Plugin Spy

将光标放在 Eclipse 中您感兴趣的任何内容上,然后点击Alt++ 。ShiftF1

对于 XML 编辑器,结果如下图所示。如您所见,插件是org.eclipse.wst.xml.ui,它甚至为您提供了以 ( XMLMultiPageEditorPart) 开头的类。

这里有一些关于查找和使用 Eclipse 源代码的更多详细信息:http ://www.vogella.com/articles/EclipseCodeAccess/article.html#swt_spy

在此处输入图像描述

于 2012-06-12T07:36:22.313 回答
2

由于对 CVS 的支持已经/将停止。您还可以使用 Git 访问源代码。

  1. 对于 Git 访问,您需要一个用户帐户:https ://dev.eclipse.org/site_login/createaccount.php
  2. 您需要正确的 URL 来“克隆”存储库: http: //git.eclipse.org/gitroot/sourceediting/webtools.sourceediting.git
于 2012-11-07T13:53:17.533 回答
1

最好的办法是查看源代码。它在此处的 cvs 存储库中可用:

:pserver:anonymous@dev.eclipse.org:/cvsroot/webtools

/sourceediting/plugins/目录中,检查以下插件:

  1. org.eclipse.wst.xml.ui
  2. org.eclipse.wst.xml.core
  3. org.eclipse.wst.sse.core
  4. org.eclipse.wst.sse.ui

前两个包含特定于 xml 支持的代码,后两个项目包含通用结构化文本编辑代码。

于 2012-05-06T20:01:23.987 回答