| Summary: | [working sets] IllegalArgumentException when trying to enable "Sort working sets" | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | UI | Assignee: | Raksha Vasisht <raksha.vasisht> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.7 | Flags: | daniel_megert:
review+
|
| Target Milestone: | 3.7 M6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Markus Keller
Fixed in WorkingSetConfigurationDialog.java . fAllWorkingSets is updated on Up or Down operations while configuring, but not when sort is enabled. Committed to HEAD. The fix seems to work, but I find it a bit strange that we now sort fAllWorkingSets in WorkingSetConfigurationDialog#okPressed() and then we sort it again in WorkingSetModel#setWorkingSets(*). In WorkingSetModel#setActiveWorkingSets(*), we're sorting as well, so all the Assert.isLegal(*) calls in setWorkingSets(*) are pretty pointless in case sorting is enabled. We'll go with the current state for M6. Dani, please have a look at the change. Verified in I20110310-1119. Fix was OK but no need to create a new comparator but use getComparator() instead. |