| Summary: | global search - options menu "sort by name" sticks on name, can never sort the other way | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Susan McCourt <susan> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 0.5 | ||
| Target Milestone: | 2.0 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Susan McCourt
in find&replace in the editor I found similar thing: 1.Do a regEx search on global search 2.Click on a match in the result page 3.It brings you to the editor with the regEx search . 4.Open the option in the find bar The regEx is not visually checked. Comments from Susan from ST: The find/replace menu checkmarks are computed dynamically every time you open menu, whereas before the menu stored the checkmark. So....if you had a bug where the model was not right...the menu might still look (before) as if it was right now that I'm querying the model live every time I open the menu, it's more obviously wrong. The thing to do is test against orionhub, not just the checkmark, but whether the option is actually working. what I was seeing was that in orionhub (old menus)....the checkmark might be showing but the option would not work. And with new menus, the menu shows the model state, so the option still does not work, but it's more obvious because the checkmark won't stick. Does htat make sense? fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e47aba2bd8f978439bac782abd4e596af8524ce4. The model state in find&replace in local search is correct but the commands._generateCheckedMenuItem function is not setting the visual checked properly. I am using node.checked = true|false and it worked. For the global search, the state of sort is not correct but it needs both model and visual fixes. The visual fix is generic as described above. Susan, I am wondering if node.value @line 927 @commands.js is still useful but I did not remove it. http://www.w3schools.com/jsref/prop_checkbox_value.asp. |