| Summary: | [CellEditors] ICellModifier geting wrong call to modify method | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Javier Latorre <eu_jls> |
| Component: | UI | Assignee: | Tod Creasey <Tod_Creasey> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P4 | CC: | cnagy, ines |
| Version: | 2.1.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
| Bug Depends on: | 54989 | ||
| Bug Blocks: | |||
|
Description
Javier Latorre
Ok, so in my case, when I follow the steps that you indicated, 2 things can happen: - If I select an item in the combo box, press the enter key, the combo box cell is deactivated. When I move on to the next cell to edit, everything behaves correctly. - If I select an item in the combo box, without pressing the enter key, the combo box cell stays activated. When I move on to the next cell, I get the following exception: java.lang.ClassCastException at com.opnworks.tableviewer.example.ExampleCellModifier.modify (ExampleCellModifier.java:100) This is caused by some changes made in SWT for the WidgetSelect events (see bug# 54989). Before 3.0, the widgetDefaultSelected event would be thrown on mouse selection, and the cell editor would be disabled. After 3.0, SWT changes are causing behavioral problems for the TextCellEditor. Since the widgetDefaultSelected event is not thrown, the cell stays activated, and there is an attempt to modify the cell that should not be modified. I have vefiried this bug, and it is now fixed. I think the created patch for Bug# 34819 helped fix this one as well. *** This bug has been marked as a duplicate of 34819 *** |