| Summary: | Javadoc and Declaratoin views not updated when selection is deleted | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Noopur Gupta <noopur_gupta> |
| Component: | Text | Assignee: | Martin Mathew <manju656> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 4.3 | ||
| Target Milestone: | 4.3 M6 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Noopur Gupta
Looking at the code, we stop processing if the selection is empty. We should just remove that code. This should clear the view and also ensure that the out-of-sync icon is shown when the selection gets empty. Manju, please take a look for M6. (In reply to comment #1) > This should clear the view and also ensure that the > out-of-sync icon is shown when the selection gets empty. To clarify: in the deletion case, it would clear the view and leave the "normal" link icon. In case we have a valid input, and the selection gets empty, we'd show the out-of-sync icon. In AbstractInfoView#computeAndDoSetInput() currently we return if the selection is empty.
if (selection == null || selection.isEmpty())
return;
If we allow the execution to continue, then the existing code will take care of clearing the view if the input is invalid or if it does not exist. If the input is valid but the selection is empty then the icon will indicate out-of-sync.
*** This bug has been marked as a duplicate of bug 403074 *** |