Eclipse WTP/XML Search is set of plugins which gives you 2 features :
- it provides a XML/Search dialog (like File/Search). You can search XML (HTML, JSP) files from your workspace with XPath:
-
develop your own plugin to manage (easily) completion, hyperlink, validation and Ctrl+Shift+G (to retrieve referenced nodes) for your custom XML, HTML, JSP files (ex : XML Spring files, web.xml, XML Jetty configuration, etc). The basic idea is to declare your link (ex: XML to XML, XML to Java , etc) with XPath Eclipse extension point. For instance XML Jetty file uses @class attributes to declare Java classes. You can declare this XML 2 Java link like this :
<extension point="org.eclipse.wst.xml.search.editor.xmlReferences"> <references contentTypeIds="org.eclipse.jst.server.jetty.xml.contenttype.jettyConfigFile"> <!-- reference with class attribute --> <reference> <from path="//" targetNodes="@class" /> <toJava /> </reference> </references> </extension>
and Eclipse WT/XML Search manages automaticly completion, hyperlink, validation and Ctrl+Shift+G for this XML to Java link. Here a screenshot about completion :
Eclipse WTP/XML Search provides several modules:
- core : the XML/Search dialog feature and XML/Search editor (to extends your own XML, HTML, JSP files with completion, hyperlink, validation and Ctrl+Shift+G).
- web : manage completion, hyperlink, validation and (Ctrl+Shift+G) in the web.xml.
- jetty : manage completion, hyperlink, validation and (Ctrl+Shift+G) for XML jetty configuration files.
- struts2 : manage completion, hyperlink, validation and (Ctrl+Shift+G) in the struts.xml and JSP.
Use the update site http://oss.opensagres.fr/eclipse-wtp-xml-search/1.0.0// or https://opensagres.ci.cloudbees.com/job/eclipse-wtp-xml-search/ws/update-site/target/repository/ to install Eclipse WTP/XML Search and read Installation Guide for more information.
See cloudbees job: https://opensagres.ci.cloudbees.com/job/eclipse-wtp-xml-search/
I will hope than one day, Eclipse WTP/XML Search will be host in the Eclipse WTP (see bug 330576).
You can read following articles about Eclipse WTP/XML Search.