| Summary: | Link with selection icon changes automatically in Javadoc and Declaration views | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Noopur Gupta <noopur_gupta> |
| Component: | Text | Assignee: | Martin Mathew <manju656> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | CC: | daniel_megert |
| Version: | 4.3 | ||
| Target Milestone: | 4.3 M6 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Noopur Gupta
Can reproduce with code from 'master'. Manju, please take a look for M6. AbstractInfoView#selectionChanged(), here if the selectionChanged event is triggered from one of the InfoViews i.e either SourceView or JavadocView, then AbstractInfoView need not honor the event. This is because there will not be any change in the input of the view if the selection is changed in one of the InfoViews.
So in AbstractInfoView#selectionChanged() instead of checking for
if (part.equals(this)) {
return;
}
if we check
if (part instanceof AbstractInfoView)
return;
the issue will be resolved.
Dani, kindly verify.
Actually, the behavior is expected since the view is no longer tracking the selection. We should not add special treatment here. |