| Summary: | [ui] Show In Package Explorer - Cannot reveal the selected element | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Stanimir Stamenkov <stanio> |
| Component: | wst.xml | Assignee: | wst.xml <wst.xml-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> |
| Severity: | normal | ||
| Priority: | P3 | CC: | nsand.dev, rakes123, sidnaiit |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Stanimir Stamenkov
If we look into CommonNavigator.getSelection(ShowInContext context) function, there is a condition if (selection != null && !selection.isEmpty() && selection instanceof IStructuredSelection) return (IStructuredSelection)selection; Whenever cursor is not at end position selection is not empty, hence we return this selection.This selection for example in case of html could be body or head node.This class is not able to make out file path from this information, hence we don't see it highlighted. If cursor is at end position, selection is empty and we return FileEditorInput in next line, and it shown properly. I am not sure how we can fix this since we cannot change the way we provide selection and CommonNavigator class is not provided by us. So you the problem lies in the Package/Project Explorer views and not in the XML editor? Note the Navigator view works just fine - what's the difference which makes it work with it and not with the other views? *** Bug 334776 has been marked as a duplicate of this bug. *** This was fixed by having our DOM adapt to IResource through Bug 208636. |