| Summary: | TreeModelIterator has TypeError on collapse if focus is not on the tree | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Susan McCourt <susan> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | antonm |
| Version: | 1.0 | ||
| Target Milestone: | 2.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Susan McCourt
I should add that once you give focus to the tree, everything is fine. fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=b0f6813df1651bffac144fd3086fba9f9cbcbd2a. The intention of that code was to check if the collapsing item is in the parent chain of the current selected item(or _cursor). If yes we have to move the _cursor up to the collapsing item, otherwise we are visually losing the current selected item(or _cursor). The code takes granted that the _cursor is always there otherwise you can't do collapse. But in reality it isn't. I safe guarded all the places where _cursor is used.If the explorer has never "initialized"/focused, the selection model just does nothing on _cursor and leave it uninitialized. BTW, Susan, I know the explorer tree in project page is still in progress but I think it might be a reminder for you. When you select the root and use right key to expand and down key to a child. Then use right key, left key, right key again, you will see exception @line 395@extensionCommands.js. commandService is not defined. I bet it is just because of "working in progress" but I think it worth mentioning it. |