Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 111759

Summary: [editor] Open source by Ctrl-mouse or F2 from xml file
Product: [WebTools] WTP Source Editing Reporter: Sergey Elin <elinsn>
Component: wst.xmlAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: david_williams, for.work.things, nsand.dev, thatnitind
Version: unspecifiedKeywords: bugday, helpwanted
Target Milestone: Future   
Hardware: PC   
OS: All   
Whiteboard:

Description Sergey Elin CLA 2005-10-06 09:18:13 EDT
Imagine the following lines in web.xml (or other xml file in project):
<servlet>
    <servlet-class>com.tengry.rgs.view.servlet.InitServlet</servlet-class>
</servlet>

It would be great to make it possible by click Ctrl+Mouse button or F2 to go 
into java source
Comment 1 Nitin Dahyabhai CLA 2005-10-06 10:24:16 EDT
Changing severity back to "normal" since it's really your call, but isn't this
more of an enhancement request than a normal bug?
Comment 2 Amy Wu CLA 2005-10-06 10:27:58 EDT
Hyperlink navigation already exists for xml files, but it's only a generic one 
that opens links in attribute values and dtds/schemas referenced in tags.
Maybe we need a special web.xml hyperlink detector?  Or a framework that 
allows people to contribute hyperlink detectors associated with a 
dtd/schema/uri.
Comment 3 Nitin Dahyabhai CLA 2005-10-06 10:43:34 EDT
A framework has already been suggested (or at least the idea of having a
framework) in bug 88293.  Presumably one of the JST plugins would contribute
this to the XML editor.  Alternately, web.xml files specifically could do this
using a custom content type and source viewer configuration.
Comment 4 David Williams CLA 2005-10-10 08:12:04 EDT
I would definitely encourage a "contribution", so XML Editor itself doesn't have
dependancy on JDT ... but some contribution ability will likely be a much
requested feature. 
Comment 5 Amy Wu CLA 2008-02-04 12:58:03 EST
mass reassignment of my bugs to xml-inbox
Comment 6 Nick Sandonato CLA 2010-10-05 18:43:01 EDT
Looks like this has been implemented for web.xml in the 5 years (almost to the day) since this was opened. F3 or Ctrl+Click will take you to the <servlet-class>