| Summary: | [browsing] Packages view: try to restore selection after input change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alex Blewitt <alex.blewitt> | ||||||||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||||||
| Severity: | minor | ||||||||||||
| Priority: | P3 | CC: | andre_weinand, daniel_megert, martinae, simon | ||||||||||
| Version: | 3.0 | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | Macintosh | ||||||||||||
| OS: | All | ||||||||||||
| Whiteboard: | stalebug | ||||||||||||
| Bug Depends on: | 34612 | ||||||||||||
| Bug Blocks: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Alex Blewitt
Created attachment 8814 [details]
Project with many packages
Created attachment 8815 [details]
Normal view of packages scrolled to bottom
Created attachment 8817 [details]
Changing to a different source package
Created attachment 8818 [details]
Manually scrolling upwards to bottom of list
There are two issues here: - the loss of the selection. We could try to restore the selection if we find a package with the same name. - the not scrolling. The scrolling seems to be a Mac problem since this doesn't happen under Windows. Andre, can you please comemnt on the scrolling problem Daniel, can you comment on the selection loss. The "not scrolling problem" is a duplicate of bug #34612 Andre, can you change the title to bug #34612 to be 'scroll tree and list' -- I did a search for the bug (because I'd thought I'd seen it somewhere before) but it didn't come up. I have asked on 34612 for the title to be changed previously, but to no avail. (Hence accidentally submitting that part dup). Adapting summary to reflect the remaining issue: Packages view should try to restore the previous selection after changing input. Is this last issue still wanted? Is it common that a different source folder has the same package? Very often the case that two source folders will have the same package. For example, almost all of my projects have a 'Source' and a 'Test' folder which allows me to separate out unit testing code from real code. All of the test classes live in the same package as the the code that they're testing; primarily as a way of helping to organise them, but also so that package-level members can be accessed as well. I don't believe this is common inside Eclipse.org because you guys use a separate feature-test plugin for holding all the test code for your plugins for a specific feature (e.g. jdt-tests). But even in plugin development, one may still use two source folders to store test/non-test code inside the same plugin; the automated build process can then be tweaked to not include the test code for final output, or compiled into a separate fragment for inclusion during testing. Maven-organised projects almost always have two source folders; one for test, one for source in the same project. And like I said, the convention does tend to be for them to be named the same as the code that they're testing. This is a nice-to-have feature, but it's still nice to have :-) This is actually a bug. We should either completely ignore the previous selection and make sure the first item is on top and also the vertical scrollbar is at the top or try to reveal the original selection and then also select that element in the list. Revert to first behavior if the original selection is not in the list. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |