| Summary: | [editor] Allow "Show Source Of Selected Element Only" mode for XML, DTD, ... | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Patrice Maldague <patrice.maldague> |
| Component: | wst.xml | Assignee: | Nitin Dahyabhai <thatnitind> |
| Status: | RESOLVED WONTFIX | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | b.muskalla, for.work.things, nsand.dev |
| Version: | 1.0 | Keywords: | helpwanted |
| Target Milestone: | Future | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Patrice Maldague
Interesting. I thought the "Show Source of Selected Element Only" mode was only Java editor-specific. Guess not. While it may not be specific to the Java editor, I would think it has far less applicability given that the Selected Element is so much more granular in XML than in Java. I don't think it's Java editor-specific since it is defined as a retargetable action (see action org.eclipse.ui.edit.text.toggleShowSelectedElementOnly in org.eclipse.ui.workbench.texteditor plugin). The behaviour I was thinking about is to show the content scoped by the selection range indicator (= the XML subtree rooted by the element selected in the outline), not just the tag and attributes of the selected element (which would not be very useful). In my opinion, it can really help to improve the "signal-to-noise ratio" when navigating big XML files via the outline. mass reassignment of my bugs to xml-inbox Resolving as won't fix. The selected Node changes far more frequently in XML and my thoughts in comment 2 haven't changed. We'd only show you the one node and its children, and then clicking on a child node would retarget the selection to just that one child. It works for Java because it never gets down to the single statement level. |