XML Editor源代码在哪里

时间:2012-05-06 14:49:26

标签: eclipse-plugin xml-editor

我正在使用Eclipse的版本如下:


适用于Web开发人员的Eclipse Java EE IDE。

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

它包含一个XML Editor插件,我的问题是:XML Editor的源代码在哪里?  任何人都可以给我一个获取XML编辑器源代码的URL吗?

3 个答案:

答案 0 :(得分:4)

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

将光标焦点放在Eclipse内感兴趣的内容上,点击 Alt + Shift + F1

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

在这里找到和使用Eclipse源代码有一些很好的额外细节:http://www.vogella.com/articles/EclipseCodeAccess/article.html#swt_spy

enter image description here

答案 1 :(得分:2)

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

  1. 对于Git访问,您需要一个用户帐户:https://dev.eclipse.org/site_login/createaccount.php
  2. 您需要正确的网址来“克隆”存储库:http://git.eclipse.org/gitroot/sourceediting/webtools.sourceediting.git

答案 2 :(得分: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
  5. 前两个包含特定于xml支持的代码,后两个项目包含一般结构化文本编辑代码。

相关问题