| Summary: | Git Repo view should remember its state (expanded nodes) | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Benjamin Muskalla <b.muskalla> |
| Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | mathias.kinzler, remy.suen, robin |
| Version: | 0.9.0 | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Benjamin Muskalla
I would agree that this would be nice to have, but am not sure if this is compliant with the Eclipse look and feel... For example, the project explorer tree also does not keep track of it's expansion state, and I don't know other trees that do. Remy, I would appreciate your opinion here. Aside from that, while the init/saveState method pair allows to store the expansion state, I don't know a clever way to serialize/deserialize the expansion state of a tree. Am I missing something here? (In reply to comment #1) > For example, the project explorer > tree also does not keep track of it's expansion state, and I don't know other > trees that do. Yes, this is most definitely not a common feature seen in the Eclipse SDK as far as I know. Mylyn does this of course but they're a different can of worms entirely. I am not implying that there is no value in this request though. > Aside from that, while the init/saveState method pair allows to store the > expansion state, I don't know a clever way to serialize/deserialize the > expansion state of a tree. Am I missing something here? No, I don't personally know of any APIs in the platform that would allow you to preserve the state easily. Perhaps this might be part of the reason why nobody actually does this. The other reason might be that drilling down trees is a potentially expensive operation since you are actively querying and creating "all" the tree items instead of letting JFace generate them as the user clicks on them. |