| Summary: | [JFace] StructuredViewer.setComparator() has no effect | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Benjamin Pasero <bpasero> |
| Component: | UI | Assignee: | Karice McIntyre <Karice_McIntyre> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Version: 3.2.0 Build id: I20060413-1718 Due to a wrong comparision (at least it looks so), setting a Comparator, which is recommended in 3.2 over setting a Sorter, is not working at all: public void setComparator(ViewerComparator comparator){ if (this.sorter != sorter){ // <-- Will always be FALSE this.sorter = comparator; refresh(); } } I think the Method should look like: public void setComparator(ViewerComparator comparator){ if (this.sorter != comparator){ this.sorter = comparator; refresh(); } } Ben